This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Build configuration for most compact output
- From: llewelly at xmission dot com
- To: John Gonzaga <jgonzaga at pnicorp dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 10 May 2004 22:29:37 -0600
- Subject: Re: Build configuration for most compact output
- References: <254D99B2-A086-11D8-95CD-000A95BA5780@pnicorp.com>
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.)