程序编译完,各块占用的情况Program Size: Code=5372 RO-data=584 RW-data=56 ZI-data=4192
再完一块全局变量:unsigned char volatile data_buf3[128];编译出来还是Program Size: Code=5372 RO-data=584 RW-data=56 ZI-data=4192
可能没初始化的问题,现改为
unsigned char data_buf3[128]=
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//
0x00,0x00,0x38,0xFC,0xFC,0x38,0x00,0x00,0x00,0x00,0x00,0x0D,0x0D,0x00,0x00,0x00,//!
0x00,0x0E,0x1E,0x00,0x00,0x1E,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//"
0x20,0xF8,0xF8,0x20,0xF8,0xF8,0x20,0x00,0x02,0x0F,0x0F,0x02,0x0F,0x0F,0x02,0x00,//#
0x38,0x7C,0x44,0x47,0x47,0xCC,0x98,0x00,0x03,0x06,0x04,0x1C,0x1C,0x07,0x03,0x00,//$
0x30,0x30,0x00,0x80,0xC0,0x60,0x30,0x00,0x0C,0x06,0x03,0x01,0x00,0x0C,0x0C,0x00,//%
};
编译结果还是一样Program Size: Code=5372 RO-data=584 RW-data=56 ZI-data=4192
求高手解答,谢谢! |