This is the mail archive of the gcc@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]

Re: Code bloat using g++


> Can anyone tell me what areas to look at to reduce code bloat when using
> g++?

You provide very little detail about what you do, how you do it, and
in particular, on what platform you do that.

So off the blue sky, here are some suggestions:
- use GNU binutils, instead of the platform linker.
- compile with optimizationm', in particular -Os
- don't generate debugging information
- use -fno-default-inline

Hope this helps,
Martin


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