Zoran Rilak <zoran.ri...@gmail.com> wrote:

> is it possible that the compiler does automatic replacement of
> dow[0] with dow0, which is as intended, while dow[k] gets
> dereferenced as a pointer to data memory?

Exactly that.  You have to apply pgm_read_word() in both cases.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to