Hi,
I am converting a project from using the TI C compiler to the new msp430-gcc (v3.2.3).
I am running into code size problems (region `ROM' overflowed).
The code size can be reduced by not using printf(). When printf() is called in a function which itself is not called it still ends up in the binary however.
Compiling with -ffunction-sections and linking with -Wl,--gc-sections strips the symbols which are not used, and solves the code size problem, but doing this also seems to strip the debug information.
Is there a way to strip the unused functions while still retaining the debug information?
I don't recall this from happening using the 'old' mspgcc, but i'm not 100% sure.
thanks,
Glenn