La RealView ARM C Compiler supports mettendo una variabile ad un dato indirizzo di memoria utilizzando l'attributo variabile at(address)
:Come posizionare una variabile ad un dato indirizzo assoluto in memoria (con GCC)
int var __attribute__((at(0x40001000)));
var = 4; // changes the memory located at 0x40001000
Vuol GCC hanno un attributo variabile simile?
Ho scritto un [articolo] (http://a3f.at/articles/register-syntax-sugar), dove enumero i mezzi per farlo. Potrebbe essere utile per alcuni. – a3f