* Re: AW: Need Help - const - ROM-Area
[not found] <1217779973.27241.ezmlm@gcc.gnu.org>
@ 2008-08-03 23:40 ` Duane Ellis
0 siblings, 0 replies; 2+ messages in thread
From: Duane Ellis @ 2008-08-03 23:40 UTC (permalink / raw)
To: gcc-help; +Cc: Michael.Daiss
Michael daiss> I thought, that with the prefix "const" for instance an
integer
michael daiss> would be fix located in the ROM-Area... But in the map-File
michael daiss> it is located in the data-area, means in the RAM...
michael daiss> What must I do to locate values in the ROM-Area?
micheal daiss> c:/winavr-20070525/bin/../lib/gcc/avr/4.1.2/ [snip]
This is more of an AVR specific question, you should ask on an AVR
specific forum.
For example: http://www.avrfreaks.net
See these two pages:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=38003
http://www.nongnu.org/avr-libc/user-manual/group__avr__pgmspace.html
-Duane
^ permalink raw reply [flat|nested] 2+ messages in thread
* AW: Need Help - const - ROM-Area
2008-07-21 21:01 Michael Daiss
@ 2008-08-03 16:12 ` Michael.Daiss
0 siblings, 0 replies; 2+ messages in thread
From: Michael.Daiss @ 2008-08-03 16:12 UTC (permalink / raw)
To: gcc-help
Hello,
I thought, that with the prefix "const" for instance an integer would be fix
located in the ROM-Area...
But in the map-File it is located in the data-area, means in the RAM...
What must I do to locate values in the ROM-Area?
Thank you for help!!!
Michael Daiss
*********************************************************************
Name: Michael Daiss
DHL-Station: 101-23713876
Adresse: Felsenstr. 54, D-70794 Filderstadt
Telefon: +49 (711) 315 92 22
Fax+Voice: +49 (721) 151 538 165
Mobil: +49 (160) 86 895 86
E-Mail: Michael.Daiss@gmx.de
*********************************************************************
Map-File:
const char TEXT0_ROM[32][21]={
"R0--MAIN ",
"RO 01 ",
"RO 02 ",
"RO 03 ",
"RO 04 ",
"RO 05 ",
"RO 06 ",
"RO 07 ",
"RO 08 ",
"RO 09 ",
"RO 0A ",
"RO 0B ",
"RO 0C ",
"RO 0D ",
"RO 0E ",
"RO 0F ",
"RO 10 ",
"RO 11 ",
"RO 12 ",
"RO 13 ",
"RO 14 ",
"RO 15 ",
"RO 16 ",
"RO 17 ",
"RO 18 ",
"RO 19 ",
"RO 1A ",
"RO 1B ",
"RO 1C ",
"RO 1D ",
"RO 1E ",
"RO 1F "};
Memory Configuration
Name Origin Length Attributes
text 0x00000000 0x00020000 xr
data 0x00800060 0x0000ffa0 rw !x
eeprom 0x00810000 0x00010000 rw !x
*default* 0x00000000 0xffffffff
.data 0x00800100 0x0
c:/winavr-20070525/bin/../lib/gcc/avr/4.1.2/../../../../avr/lib/avr5/crtcan1
28.o
.data 0x00800100 0xd92 main.o
0x00800412 TEXT1_ROM
0x00800163 MENUE_MAX_ROM
0x00800172 TEXT0_ROM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-03 23:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1217779973.27241.ezmlm@gcc.gnu.org>
2008-08-03 23:40 ` AW: Need Help - const - ROM-Area Duane Ellis
2008-07-21 21:01 Michael Daiss
2008-08-03 16:12 ` AW: " Michael.Daiss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).