Hi,

> > no_init <variable declaration>
> 
> hint:  __attribute__ ((section(".noinit")))
> as in: int __attribute__((section(".noinit"))) var;
> 
> descibed here: http://mspgcc.sourceforge.net/manual/x987.html
> 
> or as an other posibility: http://mspgcc.sourceforge.net/manual/x1023.html

Thanks, it seems to work (no error/warning).


> > - The code has a pragma for putting some variables into flash memory:
> > 
> > 
> > #pragma memory=constseg(INFO) int foo = 42; #pragma memory = default
> > 
> > How can i port this to mspgcc?
> 
> same syntax as above but with a different section.
> 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.

Rolf



Reply via email to