This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Debug formats on Linux
- To: dewar at gnat dot com (Robert Dewar)
- Subject: Re: Debug formats on Linux
- From: Daniel Berlin <dberlin at redhat dot com>
- Date: 28 Oct 2000 18:36:33 -0400
- Cc: gcc at gcc dot gnu dot org, jsm28 at cam dot ac dot uk, mark at codesourcery dot com
- References: <20001028182518.4257034D81@nile.gnat.com>
dewar@gnat.com (Robert Dewar) writes:
> <<Actually, this isn't true at all.
> Proper DWARF2 is much smaller than stabs.
> >>
>
> That's really interesting, it is not what we have seen at all from any
> of the DWARF2 gcc ports we have worked with, we have seen absolutely
> HUGE increases in executable size. Perhaps these do not generate "proper"
> DWARF2 :-)
No, they have a lot of duplicate info, and there are still
optimizations we don't pull off that we should (like factoring
location lists and putting them in .debug_loc, factoring strings and
putting them in .debug_str.)
BTW, this is what -feliminate-dwarf2-dups does, is eliminate the duplicates
Of course we still get killed by the overhead of so many labels.
Once we have a linker we can actually eliminate dwarf2 in, dwarf2 will
be as small as stabs, if not smaller.
It certainly has the capability to me much smaller than stabs.
--Dan