I have a test program for the FR5969 LaunchPad.
With the TI compiler in debug mode (no optimisation), it generates 3348 bytes of program and about 16 of data.
With the GCC compiler in debug with no extra parameters (other than setting the processor type to msp430x and including driverlib in the include path), the code size is... 29514 code and 756 data.
Is there something obvious I've missed?
The same code from both compilers works fine. In both cases I cleaned the project before doing the build.
EDIT: as an aside, I did "release" builds of the same code under both TI & RedHat - there was almost no difference in code size at all. Do the optimisers actually do anything meaningful?
Upping the TI compiler optimisation to "4" (whole program optimisation) reduced the code down to 2266 bytes - a real improvement. I couldn't get the RedHat compiler to improve much at all...
EDIT: With GNU debug mode, selecting "Remove unused sections" in the linker options reduced code to 19206 and data to 688 - an improvement, but still extraordinarily poor.