How do I place a pointer to a strings in the rom, I have attemptet this:
But it still puts the pointer into the ram.Code:const char *MenuAHeadline[NUM_OF_LANG]= {"1 Unload program",""};
How do I place a pointer to a strings in the rom, I have attemptet this:
But it still puts the pointer into the ram.Code:const char *MenuAHeadline[NUM_OF_LANG]= {"1 Unload program",""};
You've gotta say which compiler / linker / rom image generator you're using.
You've got three threads now in here that discuss basically the same issue.
The other two:
pointer to a function
less use of ram
How about trying to keep it focused in one thread? The answers you get in one thread are likely to be important for the other two threads as well.
How about this?Originally Posted by ramdal[edit]If you'd actually tell us your target MCU, this could be easier. If this is still the Zilog {insertthenameofthedevice}, the ZDS docs mention a language extension rom type and show several examples.Code:const char *const MenuAHeadline[NUM_OF_LANG]= {"1 Unload program",""};
Last edited by Dave_Sinkula; 12-19-2005 at 09:24 AM.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
thanx..