Extern variable at specific address
- by AndiNo
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?