Henrik Karlsson

placing data in flash

Discussion created by Henrik Karlsson on Feb 14, 2008
Latest reply on Feb 14, 2008 by CrasyCat
Hi folks,
I have a question for you.
Im porting some code from AVR (the IAR compiler) to Freescale. For the avr there is a prefix '__flash' that tells the linker/compiler that the variable should be located in the flash, not the ram. For example:
__flash const char str[] = "abc";

Is there an equivalent way of doing it in CW witha prefix? or do I have to write something like
const char str[] @"DEFAULT_ROM" = "abc";

Best Regards