On 2007-06-30, [email protected] <[email protected]> wrote: > 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
The functions-sections option should work. It has worked since at least 3.2.3, but it generated a bogus compiler warning about how it "may affect debugging". See this thread: http://thread.gmane.org/gmane.comp.hardware.texas-instruments.msp430.gcc.user/5945 What happened when you tried to use -ffunction-sections? A few months ago I posted patches to support -fdata-sections as well: http://thread.gmane.org/gmane.comp.hardware.texas-instruments.msp430.gcc.user/5957/focus=5979 -- Grant Edwards grante Yow! What I want to find at out is -- do parrots know visi.com much about Astro-Turf?
