This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reduce Dwarf Debug Size


On Feb 27, 2007, at 10:38 AM, Lawrence Crowl wrote:
The basic idea is to not emit struct debugging information in the
current compilation unit when that information will be generated
by another compilation unit.  The primary criteria is whether the
base name of the file containing the struct definition matches the
base name of the main file being compiled.

I don't think this is probably the right direction to venture out in...


I have a counter proposal, instead, use -frepo to select where you want to lay down the debug information.

To that end, let me show you half of the code... I''ll leave it as a project exercise to up port it and finish off the other half.

When last I built this, it removed just about 100% of the debug information for a large C++ header file. (Carbon.h). As for what needs doing, you would need to modify collect2 to choose one instantiation point for each unique type. I'm hoping that you could do that with 50 lines of code or so. From there, just additional testing and finishing off the rough corners.

Attachment: debug-repo.diffs.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]