[arm-gnu] Placing variable at absolute address in RAM

Mark Deneen mdeneen+arm at saucontech.com
Thu Apr 5 14:54:24 UTC 2012


If you pass "-defsym,dmavar=0x80007000", will ld preserve this space or is it possible for it to assign another symbol at that location?


-M


----- Original Message -----
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.
+
_______________________________________________
arm-gnu mailing list
arm-gnu at codesourcery.com
http://sourcerytools.com/cgi-bin/mailman/listinfo/arm-gnu



More information about the arm-gnu mailing list