This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build configuration for most compact output


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.)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]