1>."C51.pdf",104页中有这样的话:
NOTE
If you use the _at_ keyword to declare a variable that accesses an XDATA peripheral, you may require the volatile keyword to ensure that the C compiler does not optimize out necessary memory accesses.
"volatile"目的基本如上.
2>.定义和使用即(1,2)不是2种方法.
3>.有的芯片本身有1到4K的SRAM作XDATA(如W77E58).所以0x100就太低了.
详情回复
发表于 2007-10-31 10:45
1>."C51.pdf",104页中有这样的话:
NOTE
If you use the _at_ keyword to declare a variable that accesses an XDATA peripheral, you may require the volatile keyword to ensure that the C compiler does not optimize out necessary memory accesses.
"volatile"目的基本如上.
2>.定义和使用即(1,2)不是2种方法.
3>.有的芯片本身有1到4K的SRAM作XDATA(如W77E58).所以0x100就太低了.