[arm-gnu] Placing variable at absolute address in RAM
42Bastian
list-bastian.schick at sciopta.com
Thu Apr 5 14:51:18 UTC 2012
Hi
> With the RealView ARM C Compiler, you may use either pointer definitions (as shown above) or __attribute__((at(address))) keyword to define a variable at a fixed memory address. In contrast to
GCC was not designed for embedded :-)
> the pointer construct, the following definition also makes a correct
> memory reservation, so that the area cannot be used twice.
> int var __attribute__((at(0x40001000)));
Yes, this is a missing feature. Feel free to add it to ld (sources are
available) ;-)
--
42Bastian
+
| http://www.sciopta.com
| Fastest direct message passing kernel.
| IEC61508 certified.
+
More information about the arm-gnu
mailing list