arm 变量或数组放置在指定地址
语法
__attribute__((at(address)))
其中:
本文引用地址:https://www.eepw.com.cn/article/201611/319040.htm- 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
评论