Reduce Dwarf Debug Size

Ian Lance Taylor iant@google.com
Thu Mar 1 02:27:00 GMT 2007


Mike Stump <mrs@apple.com> writes:

> On Feb 28, 2007, at 3:30 PM, Ian Lance Taylor wrote:
> > We should evaluate Lawrence's patch on its own merits: is it
> > useful, does it work, is it well-written.
> 
> I'm game for this.  I just worry that it works fine for all sample
> programs 500 lines or less and on nothing larger.  I'd rather have a
> real user evaluate it in the context of a use pattern and tell us now
> it performs for them.

Lawrence has already evaluated it on Google's internal codebase, which
is more than 500 lines.  Lawrence, could you send out the various
tables showing the percentage reductions for the various options?
Thanks.

> In the various scheme we've done, and we've done a few, leaving the
> debugging information in the .o files and having a utility to boost
> them out and save them, if you need to do that, is the current winner.

That approach doesn't work well for us because it requires you to keep
the .o files around if you want to do any debugging.  And it requires
a reliable mapping from an executable back to the .o files used to
generate it.  There are certainly scenarios where that can work.

Ian



More information about the Gcc-patches mailing list