arm 变量或数组放置在指定地址
语法
__attribute__((at(address)))
其中:
- address
是所需的变量地址。
限制
链接器并非始终能够放置 at 变量属性生成的节。
错误
如果无法将节放置在指定地址,链接器将显示一条错误消息。
示例
const int x1 __attribute__((at(0x10000))) = 10; int x2 __attribute__((at(0x12000))) = 10; int x3 __attribute__((at(0x14000))) = 0; int x4 __attribute__((at(0x16000)));
另请参阅
uint32 |
或者加入:
#include
关键词: arm变量数组指定地

加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW
或用微信扫描左侧二维码