[arm-gnu] Image size reduction with linker optimization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] Image size reduction with linker optimization



I am developing a program using CodeSourcery Lite and the ST drivers for
the STM32 family.  I am calling only a few functions in the ST driver
files, and yet I see ALL of the functions of those files included,
whether they are called or not.  I want to minimize my image size by
getting rid of this unused code.

 

When I compile and link using the Raisonance toolkit (also gnu), I don't
see this extraneous code linked in.

 

I've tried all the reasonable linker options I can find in the
documentation, with no luck.  

 

Any suggestions?

 

TIA,

 

Michael Downing