This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


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

Re: Type info overload


Daniel Berlin wrote:
> 
> Is anyone working on reducing the amount of memory types take up?
> 
> If i compile gdb with stabs, it takes 20 megs to fully read in the symbols
> (maint check-symtabs will do it).
> If i compile gdb with dwarf2, the executable is 500k bigger, but it takes
> 60 meg to fully read it in.
> The difference is completely in types.

One optimization that stabs has, but dwarf does not, is that
the linker can recognize when several modules pull in the same
include file (eg. stdio.h or stdlib.h) and compile it with 
identical results.  This would produce several copies of the
same type symbols if the linker did not combine them.
 
> If no one else is working on reducing the amount of memory type info uses,
> i'll take a crack at it.

No one else is doing any work in this area, as far as I'm aware.

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