This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Type info overload
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Type info overload
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: Sun, 9 Apr 2000 10:27:19 -0700 (PDT)
- cc: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
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.
It has 115 thousand types.
Their is no possible way, unless i touch every single type in a debugging
session, that this makes sense.
Just doing a simple thing like bcaching the type names saved 40% of the
memory.
If no one else is working on reducing the amount of memory type info uses,
i'll take a crack at it.
--Dan