This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Reduce Dwarf Debug Size
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: Michael Eager <eager at eagercon dot com>, Lawrence Crowl <crowl at google dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 04 Mar 2007 09:58:27 -0800
- Subject: Re: Reduce Dwarf Debug Size
- References: <29bd08b70702271038id9865cfjd5528170d15d4282@mail.gmail.com> <45E8F6C9.2030900@eagercon.com> <4aca3dc20703031432x6ad9c5f6u2f6063820ad4dcee@mail.gmail.com>
Daniel Berlin wrote:
> People have been talking about doing duplicate DWARF2 elimination
> in ld for 5+years now, and it hasn't gotten done. It's just very hard
> to do in the current linker
I do not believe this is a incredibly hard project. It's a tweener:
it's not a weekend's work, but it's not TREE-SSA (or even LTO) either.
We've looked at it, and I would estimate 1-4 person-months, depending on
who works on it, how far you take it, how many platforms you enable it
for, and how buggy your first-cut code tends to be. :-)
I think it's inarguable that this approach would be useful to many. I'm
not saying it's a panacea, better than Lawrence's patch, etc.; I'm just
saying it would be useful, and that it's doable.
> In the meantime, I agree with Ian that we should consider this one, as
> I don't see the harm.
I've previously agreed with this statement, and I still do. :-) I did
make some implementation suggestions, but, in principle, I think this
kind of functionality is worth considering.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713