Huge Increase in Unstripped Executable Size G++ 2.95 to 3.2
Devang Patel
dpatel@apple.com
Fri Feb 28 19:54:00 GMT 2003
On Friday, February 28, 2003, at 05:06 AM, Andi Kleen wrote:
> On Fri, Feb 28, 2003 at 01:49:13PM +0100, Andreas Schwab wrote:
>> Andi Kleen <ak@suse.de> writes:
>>
>> |> Jim Wilson <wilson@tuliptree.org> writes:
>> |>
>> |> > while DWARF2 debug info is designed
>> |> > to be more compact than stabs,
>> |>
>> |> That's a joke isn't it?
>>
>> You didn't read the whole message, did you?
>
> I think I did. But I believe it is incorrect: the reason
> is that just the object files are much bigger too than with
> stabs, and these cannot be explained by "duplicated includes"
Agree. DWARF2 is bigger for single object file and GCC is slower
producing it.
Using following spu example few months ago, I measured ~15% compile
time slowdown and big increase in size with DWARF2 compared to STABS.
"spu --language c++ --files 1 --functions 20 --function-length 10
--lib-enums 2000 --enumerators 8 --lib-structs 1000 --fields 12
--lib-classes 800 --methods 20 --lib-functions 10000"
-Devang
More information about the Gcc
mailing list