avr-gcc-list
[Top][All Lists]
Advanced

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

RE: [avr-gcc-list] Fixing location of constants in .text


From: Gavin Jackson
Subject: RE: [avr-gcc-list] Fixing location of constants in .text
Date: Thu, 12 Aug 2004 10:48:51 +1200

Use the linker file to create a region of flash to store the
constants in. The linker will then place the variables in that
region in the order the variables are declared and linked in (if
variables span multiple files.)

Why do you want to do this? Can you not use EEPROM to store the
constants?

-----Original Message-----
From: Ramkumar Rengaswamy [mailto:address@hidden 
Sent: Thursday, 12 August 2004 10:39 a.m.
To: address@hidden
Subject: [avr-gcc-list] Fixing location of constants in .text


Hi,
   I am curious to know if it is possible to fix the location of the
global constants declared in the program. To give an example,
-----------------------------
const int state_size = 0;
const state* statep = 0x0000;
-----------------------------
I would like to some way of storing these constants in the program memory
at some fixed memory locations.

Thanks,
-Ram

_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list


reply via email to

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