debug symbol size
Joern Rennecke
amylaar@redhat.com
Thu Dec 7 14:21:00 GMT 2000
> Note the . of .text. I was trying to say that for such a small text
> segment there was perhaps an excessive amount of debug information
> output.
In a previous discussion, IIRC, the verdict was that the types need
most of the debugging symbol space for small programs.
In a way this is a feature of C++: you #include information for a bootload
of types, and it is hard to tell which of these someone who debugs the
program might be intrested in.
Consider the case where an intermediate variable was optimized away.
The programmer might still want to cast a value to the type of that
variable, even if there is no variable of that type left.
And in C++, with all its virtual superclasses and containers that
might contain all sorts of things, it's also hard to tell which types
could possibly be used by the program.
More information about the Gcc
mailing list