Re: String array in ROM gives error in spite of following example code.

[email protected] (Joerg Wunsch)
Newsgroups gmane.comp.hardware.avr.gcc
Organization Private BSD site, Dresden
Message-ID <[email protected]>
Royce Pereira <[email protected]> wrote:

> Even the libc documentation, which was once the bible of avr-gcc on
> this is not accurate. The sample code just does not work.

Apparently, nobody noticed before.  Please, file a bug report
to the avr-libc project, so we can fix that.

The question here (as always) is whether you really want both, the
strings itself as well as the pointers (table of it) in flash.  The
table is quite small, and could as well be kept in RAM unless you are
very thight on RAM.

As the compiler now understands the __flash qualifier, using that
would make it a lot easier.
-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.