nobo...@web.de wrote:
i think "infomem" should work for you
and "infomemnobits" would be almost the same, except that it does not
include the initial value in the elf/hex file
#pragma memory=constseg(infomem)
and
#pragma memory=constseg(.infomem)
do not work. What do i have to write?
I could find not documentation about the pragmas of the mspgcc.
gcc does not use #pragma as it has some serious drawbacks, like it's not
possible to use one in a #define.
gcc uses the __attribute__((x)) declaration instead.
i think you want something like that (untested):
int __attribute__((section("infomem"))) var = 42;
chris