This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.2 code bloat from debug info
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Michael Elizabeth Chastain <mec dot gnu at mindspring dot com>
- Cc: glenn at aoi-industries dot com, gcc at gcc dot gnu dot org
- Date: Sat, 29 Nov 2003 10:22:52 -0500
- Subject: Re: 3.2 code bloat from debug info
- References: <20031129064117.528934B363@berman.michael-chastain.com>
On Sat, Nov 29, 2003 at 01:41:17AM -0500, Michael Chastain wrote:
> You can see that most of the sizes have gone down. Only two files have
> increased more than 50% : ambiguous.o and userdef.o.
This is extremely atypical, FYI. In general GCC's current dwarf-2
output is vastly larger, as the reporter saw. Debug info for libc.so.6
went from about 2MB to about 20MB.
> BTW, the gdb folks recommend dwarf-2 over stabs+. Note that if you
> compile with just plain "gcc -g", gcc on native i686-pc-linux-gnu will
> default to stabs+ with gcc 2.95.3 and dwarf-2 with gcc 3.2.2.
Of course, that 20MB is a whole lot more useful than the 2MB. GDB
doesn't make extremely good use of it - yet. But it will. Also, the
size will eventually go down again, we promise.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer