This is the mail archive of the gcc@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: Huge Increase in Unstripped Executable Size G++ 2.95 to 3.2


On Fri, 2003-02-28 at 03:11, Andi Kleen wrote:
> Jim Wilson <wilson at tuliptree dot org> writes:
> > while DWARF2 debug info is designed 
> > to be more compact than stabs, 
> That's a joke isn't it?

Not at all.  DWARF is provably more compact that stabs.  However, size
wise, our stabs implementation is more mature than our DWARF
implementation, and as a result, in many cases, our stabs output is
smaller than our DWARF output.  If you would like to contribute patches
to help fix this, that would be great.

Also, keep in mind that DWARF is more expressive than stabs.  In some
cases, the stabs are smaller because they contain less info.  Try to
debug complicated C++ programs with stabs, and you may find that you
can't, because too much info is missing.  In this case, smaller debug
info is not necessarily better debug info.

There are also likely other issues that need to be addressed.

We know that our DWARF info is bigger than our stabs info, but DWARF
really is better, and the size problem will eventually be fixed when
enough people get tired of ignoring it.

Jim



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