Allocate a variable in a known physical location
isuru herath
isuru81@yahoo.com
Wed Feb 2 21:46:00 GMT 2011
Hi Ian,
Thanks for the reply and suggestion. I am not familiar with section
attribute, so I will need sometime to look in to that. Particularly I don't
know how to specify a physical address range for a section. I found the
following link.
http://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html
But it does not explain how to develop a linker script. Any reference would
be greatly appreciated. In the mean time I am trying silly things, probably
you have seen in my other mails to the list.
thanks and regards,
Isuru
--- On Tue, 2/1/11, Ian Lance Taylor <iant@google.com> wrote:
> From: Ian Lance Taylor <iant@google.com>
> Subject: Re: Allocate a variable in a known physical location
> To: "isuru herath" <isuru81@yahoo.com>
> Cc: gcc-help@gcc.gnu.org
> Date: Tuesday, February 1, 2011, 11:39 AM
> 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