I've been trying out the new msp430-elf-gcc compiler. I like that we have a supported platform from TI that is part of the standard gcc distribution. However, it seems to have a few nits. If you try to compile a simple c++ program with msp430-elf-g++, it fails because of problems with iomacros.h. I've reported this on the e2e.ti.com forums. In the meantime I put together a fix that seems to work for me.
I threw together a gist so you can see how I addressed it:
gist.github.com/RickKimball/1303030#file-include-iomacros-h
As a bonus you get some assembler code that uses interrupts with the new msp430-elf-gcc to blink an led. You will have to copy my iomacros.h and in430.h into the directory where you downloaded the headers from TI. I've tested this with .c, .cpp and .S files.
[Links to e2e.ti.com discussions]
e2e.ti.com/support/development_tools/compiler/f/343/t/356902.aspx
-rick
I threw together a gist so you can see how I addressed it:
gist.github.com/RickKimball/1303030#file-include-iomacros-h
As a bonus you get some assembler code that uses interrupts with the new msp430-elf-gcc to blink an led. You will have to copy my iomacros.h and in430.h into the directory where you downloaded the headers from TI. I've tested this with .c, .cpp and .S files.
[Links to e2e.ti.com discussions]
e2e.ti.com/support/development_tools/compiler/f/343/t/356902.aspx
-rick