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]
Other format: [Raw text]

Re: 3.2 code bloat from debug info


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


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