Re: Code Bloat using GCC 3.2 on Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -fdata-sections and -ffunction-sections puts the code in different
> sections and with the linker flag --gc-sections you can remove code that
> is never called or data which is never used.  This does reduce code size
> provided the --gc-sections is implemented in the linker. Could you try
> it on your case and see what happens ?

That makes me more comfortable - I'll sure give this one a try and see
how it goes.
 
> Also 3.2 is no longer supported by the community, so you might not see
> too much interest in looking at a 3.2 problem. The versions that are
> supported today are 3.3 and 3.4 . You could try either and see if there
> are any improvements or they help solve your problem.

That's not an option for me - I *have* to go with 3.2

> Do you have a number of inline functions in your code ? You could try
> tuning that with -finline-limit-X, where X may be reasonably set to a
> value between 100 and 5000.

Yes I do, but I'm already using -fno-inline. I guess that should do
away with it?

Thanks,
-Gaurav

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux