Problems compiling "__attribute__((at"

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problems compiling "__attribute__((at"

1,739 次查看
lpcware-support
Senior Contributor I

Some other toolchains provide a compiler extension __attribute__((at(addr))) which acts as a request that the variable that it is applied to is placed at location addr. For example:

static HostController _controller __attribute__((at(USB_RAM_BASE)));

The GNU toolchain as used by the LPCXpresso IDE provides no direct equivalent of this 'at' attribute.

Often the 'at' attribute is being used to simply place a buffer variable into a specific bank of RAM. This will often be possible just using the section macros provided in the header cr_section_macros.h.

For more information, please see the FAQ "Placing data at an address".

标签 (1)
标记 (2)
0 项奖励
回复
0 回复数