Build configuration for most compact output

llewelly@xmission.com llewelly@xmission.com
Tue May 11 04:29:00 GMT 2004


John Gonzaga <jgonzaga@pnicorp.com> writes:

> I'm trying to reduce code size and I'm wondering besides the
> optimizations flags, what combination of other flags, either in
> building the toolchain or command line, that will result in the most
> compact output. No dead code, no debug info, etc, just the code that
> is required to do the operation of my application. Thanks.

-ffunction-sections --gc-sections *may* help. (It doesn't always help,
     so do some experiments.)




More information about the Gcc-help mailing list