NanGuanEmbeddedSystemLabSchoolofInformationScienceandEngineeringNortheasternUniversityMemory 2005-10-7Dec lar a tion 以下涉及内容未必对所有的嵌入式系统都适用。 只针对共性问题进行探讨 所举例子仅为示意Memor y Volatile 关键字Thevolatilekeywordisatypequalifierusedtodeclarethatanobjectcanbemodifiedintheprogrambysomethingotherthanstatements,suchastheoperatingsystem,thehardware,oraconcurrentlyexecutingthread.定义存储器映射寄存器时,必须使用volatile 关键字。#defineSCI_01*(volatileunsignedint*)0 x5808Memor yObjectsdeclaredasvolatilearenotusedinoptimizationsbecauseth