nobo...@web.de wrote:
I could not compile the code (from IAR 1.26A) for the FW427
because that cpu is unknown to mspgcc. When will the FW427 be
supported?

as soon as someone writes the linker script and the patches to binutils
and gcc ;-) there was a post from Steve with patches for an other
target, those could be used as template.

> While trying to compile i found out that timera.h has a bug: The
definition of struct timera1 has to be changed to struct timera1_t.
Otherwise the the mpsgcc complains

error: timera.h: 150: storage size of 'timera1' isn't known

thanks, fixed

I have 3 problems left to port the software:

- no_init is unknown. Can i simply erase no_init in the declaration

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

- 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

- The code is too big:

msp430-gcc -mmcu=msp430x413 -Os -mendup-at=main -Wall -g -c main.c ... msp430-gcc -Wl,-s,-O,--verbose -mmcu=msp430x413 -Os -o aout.elf
main.o isr.o memory.o modules.o msp430-ld: region text is full
(aout.elf section .text) msp430-ld: section .vectors [0000ffe0 ->
0000ffff] overlaps section .text [0000e000 -> 00010341] make: ***
[aout.elf] Error 1

Is there no trick to reduce the size to the size the IAR compiler
produces?

- did you compile for the same target?
- did you try -O2 too?
- does the code use floats?

chris

Reply via email to