This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Type info overload
- To: Daniel Berlin <dan at cgsoftware dot com>
- Subject: Re: Type info overload
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Mon, 10 Apr 2000 00:17:09 -0700
- CC: Andrew Cagney <ac131313 at cygnus dot com>, GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <Pine.LNX.4.10.10004090949570.30545-100000@propylaea.anduin.com>
- Reply-To: msnyder at cygnus dot com
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.