avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] array of string pointers in progmem


From: xol
Subject: [avr-gcc-list] array of string pointers in progmem
Date: Sun, 28 Apr 2002 23:40:02 -0700

Hi.
I want to do following
Create array of pointers to strings in program memory. Strings also must be in program memory.
 
I try following:
PGM_P str_table[] PROGMEM = { "ERROR", "OK" };
 
I get
 
00000026 <str_table>:
  26:   61 00 67 00
 
Contents of section .data:
 800060 01455252 4f52004f 4b00               .ERROR.OK.
 
Compiler put pointers to prog memory but I can't make him to put string there.
 
Any Ideas?
Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]