Hi,

I'm trying to get mspgcc to optimize my binary's size by removing unused 
functions during the linking process.
gcc supports this feature starting from a version >=4.0 adding this

CLFAGS = -ffunction-sections -fdata-sections
LDFLAGS = --gc-sections

but last thing I was told is, that I should use MSPGCC 3.4 (from cvs) patching 
GCC 3.3.6 because this was stable and the 4.x was far from being usable.
I tried to get 4.x to compile to get an idea about the status but wasn't 
successful.
So, any suggestions on how I can get this done?
At the moment I have a lot of (object) files with unused functions which blow 
up my binary.
I am seriously considering to move to another compiler since I've been thinking 
about this a couple of weeks now and see no solution.

Thanks

Juergen

P.S.: I am using msp430-gcc 3.3.6 for MSP430F1611
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

Reply via email to