From: Jesus Calvino-F. <Je...@ec...> - 2003-08-15 02:52:29
|
Hi Gregor, Just use "code" instead of "const", or place "code" before "const", for example: #include <string.h> void main (void) { char dst[20]; code char src[]="Src string\n"; strcpy(dst, src); } Jesus At 03:13 AM 8/15/2003 +0200, you wrote: >I'm using AT89C family of microcontrolers ... > >Few days ago i started writing function for LCD and somehow I can't get over >this problem so I'm writing in hope that someone knows more than me :) > >The thing is ...if I want to store a huge char aray in this way > >const char name[] = " string " ; > >the folowing ASM code is > >mov 0x01100001, #XXX ; > >this takes a huge amount of memory ....since i'm using small memory >model...just 128 bytes :( > >is there any chance to make array directly in ROM or something like that ? > > I thought const would automaticly put that string ion a ROM ...anyway > thanks >for your help > >thanks to SDCC developing team > >best regards Gregor Skrt (Slovenia) |