Hello
What exactly are you trying to achieve here?
There is no dedicated keyword to place something in RAM, FLASH or EEPROM.
Basically on the compiler side you specify in which section you want to place a variable and then in your linker.PRM file you place the section in the appropriate memory area.
Per default
- constant variables are placed in .rodata (variable defined with const).
- string constants in .rodata1.
- global variables defined with an initialization value are placed in .data
- global variables defined without initialization value are placed in .bss
You can define your own section using the #pragma DATA_SEG or #pragma CONST_SEG to specify alternate sections.
Then all you need to do is place the sections accordingly in the .PRM file.
CrasyCat