Huge Increase in Unstripped Executable Size G++ 2.95 to 3.2
Jim Wilson
wilson@tuliptree.org
Fri Feb 28 06:29:00 GMT 2003
nabeel@netzero.com wrote:
> Switching from G++ 2.95.3 to 3.2, increased the unstripped debug build
> size from 14.0MB to 25.6MB. The stripped size is almost exactly the
> same at 5.7MB.
To add to what Daniel said, in stabs, we have support for eliminating
duplicate debug info for header files. That is, if a header file is
included in multiple files, we can eliminate all but one copy of its
debug info. Unfortunately, the same support for our DWARF2 debug info
is still a work in progress. Thus, while DWARF2 debug info is designed
to be more compact than stabs, our current implementation is not because
we are missing an optimization present in our stabs support. This will
eventually be fixed.
Jim
More information about the Gcc
mailing list