Allocate a variable in a known physical location

Ian Lance Taylor iant@google.com
Tue Feb 1 19:39:00 GMT 2011


isuru herath <isuru81@yahoo.com> writes:

> As you mentioned in your reply can I use section attribute to achieve this or do you have any other suggestion. 

Yes, use the section attribute and a linker script.  You would apply the
section attribute to a variable whose type is your complete struct.

Ian



More information about the Gcc-help mailing list