[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] I am getting lost in indirections - help please
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] I am getting lost in indirections - help please |
Date: |
Thu, 15 Mar 2007 21:11:52 +0100 (MET) |
Juergen Harms <address@hidden> wrote:
> static const prog_char *day_names[] =
> { (const PROGMEM char *) "",
> (const PROGMEM char *) "Mon",
> (const PROGMEM char *) "Tue",
> (const PROGMEM char *) "Wed",
> (const PROGMEM char *) "Thu",
> (const PROGMEM char *) "Fri",
> (const PROGMEM char *) "Sat",
> (const PROGMEM char *) "Sun" } ;
That doesn't work. GCC cannot really handle multiple memory spaces,
so that PROGMEM isn't going to get you anywhere close.
See here:
http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_rom_array
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)