[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: |
Schwichtenberg, Knut |
Subject: |
RE: [avr-gcc-list] Allocating variables to a fixed address |
Date: |
Mon, 11 May 2009 12:31:29 +0200 |
Robert,
there is no difference in handling. So create your special section and put the
variables into it as you would do it with the flash.
Cheers
Knut
> -----Original Message-----
> From:
> address@hidden
> g
> [mailto:address@hidden
ongnu.org] On Behalf Of Robert von Knobloch
> Sent: Monday, May 11, 2009 11: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.
>
> Best regards,
>
> Robert von Knobloch
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
- [avr-gcc-list] Allocating variables to a fixed address, Robert von Knobloch, 2009/05/11
- RE: [avr-gcc-list] Allocating variables to a fixed address,
Schwichtenberg, Knut <=
- RE: [avr-gcc-list] Allocating variables to a fixed address, Weddington, Eric, 2009/05/11
- Re: [avr-gcc-list] Allocating variables to a fixed address, Robert von Knobloch, 2009/05/11
- Re: [avr-gcc-list] Allocating variables to a fixed address, David Kelly, 2009/05/11
- Re: [avr-gcc-list] Allocating variables to a fixed address, Robert von Knobloch, 2009/05/11
- RE: [avr-gcc-list] Allocating variables to a fixed address, Weddington, Eric, 2009/05/11
- Re: [avr-gcc-list] Allocating variables to a fixed address, David Kelly, 2009/05/11
- RE: [avr-gcc-list] Allocating variables to a fixed address, Stu Bell, 2009/05/11
- Re: [avr-gcc-list] Allocating variables to a fixed address, Robert von Knobloch, 2009/05/12