[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Allocating variables to a fixed address

From: Weddington, Eric
Subject: RE: [avr-gcc-list] Allocating variables to a fixed address
Date: Mon, 11 May 2009 06:27:33 -0600


> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Robert von Knobloch
> Sent: Monday, May 11, 2009 3:39 AM
> To: address@hidden
> Subject: [avr-gcc-list] Allocating variables to a fixed address
> Is there any way of 'fixing' a few, specific global variables 
> at a known
> location?
> In flash, I can use a '.section' to do this. Is there an 
> equivalent for ram?
> I notice that the compiler puts static variables before globals, which
> make it impossible to predict where the globals will be.
> I am writing modular software and to be version independant, I must
> define a simple API.
> I have flash under control, but now ram is the problem.

Why do you need global variables to be at a specific address?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]