This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Code bloat using g++
- To: kit dot smithers at eds dot com
- Subject: Re: Code bloat using g++
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sat, 6 Nov 1999 10:39:37 +0100
- CC: gcc at gcc dot gnu dot org
- References: <F134B35F65F0CF11B9DB00805FD68957F46C7E@GBHDM001>
> 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