谢谢楼上的回答!
Uint08 Ai[32]={0x20,0x20,0x20,0x20,0x26,0xF9,0x20,0x20,0x20,0xF8,0x27,0x22,0x20,0x20,0x20,0x00,
0x01,0x01,0x02,0x02,0x04,0x88,0x50,0x20,0x50,0x88,0x04,0x04,0x02,0x03,0x02,0x00};//艾
怎么不加const时内存情况是这样
Program Size: Code=29234 RO-data=446 RW-data=160 ZI-data=3968
const Uint08 Ai[32]={0x20,0x20,0x20,0x20,0x26,0xF9,0x20,0x20,0x20,0xF8,0x27,0x22,0x20,0x20,0x20,0x00,
0x01,0x01,0x02,0x02,0x04,0x88,0x50,0x20,0x50,0x88,0x04,0x04,0x02,0x03,0x02,0x00};//艾
而加了const后内存情况是这样?
Program Size: Code=29234 RO-data=446 RW-data=128 ZI-data=3968
加了const后数组32个字节到哪去了?怎么RAM和FLASH空间都没有体现?? |