keil软件编译后,data xdata code区域的大小确认

1.keil 软件编译后,会提示 如下信息,需要了解确认,避免自己程序占用RAM或ROM太大

Program Size: data=9.0 xdata=1024 code=17

网上查阅 data xdata code 区域的大小,已经存放的内容。data 一般是RAM的低128B地址空间,xdata是之后的RAM, 对应的代码变量用pdata或xdata修饰。

code区域中存放的是代码上下文,其大小=ROM+EEPROM, 对一些字库数组,已经加code修饰,让其存放在ROM中

详细信息,请看如下博文:

https://blog.csdn.net/weixin_44775687/article/details/124467738

posted @ 2025-01-05 23:19  靖意风  Views(455)  Comments(0)    收藏  举报