Extern variable at specific address
Posted
by AndiNo
on Stack Overflow
See other posts from Stack Overflow
or by AndiNo
Published on 2010-06-12T21:45:11Z
Indexed on
2010/06/12
22:02 UTC
Read the original article
Hit count: 198
Using C++ and GCC, can I declare an extern variable that uses a specific address in memory? Something like
int key attribute((__at(0x9000)));
AFAIK this specific option only works on embedded systems. If there is such an option for use on the x86 platform, how can I use it?
© Stack Overflow or respective owner