[Top][All Lists]

[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

-----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

   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.


avr-gcc-list mailing list

reply via email to

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