[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Strings in flash
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Strings in flash |
Date: |
Mon, 1 Aug 2005 15:54:00 +0200 (MET DST) |
In article <address@hidden> you write:
>However, when the strings are a variety of sizes, space is wasted. Is
>there some way to declare the array instance so I can use the type
>definition one would normally use in ram, ie:
It's even described in the FAQ:
http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_rom_array
Note that quite often, it's not even necessary to put both, the table
and the strings in ROM, as the string pointers in the table itself
don't waste much RAM.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)