Re: Library tripled in size with GCC 4.2
Re: Library tripled in size with GCC 4.2
- Subject: Re: Library tripled in size with GCC 4.2
- From: Jim Ingham <email@hidden>
- Date: Thu, 16 Oct 2008 10:05:28 -0700
You can verify whether the DWARF debug information is really the
problem pretty easily before you go much further down this route.
Probably simplest to just look at individual .o files before they get
built into the library. So pick a big one - or one that shows the
most difference between gcc 4.0 & gcc 4.2, and do:
gdbrulez:tot-clean/build/gdb > dwarfdump --file-stats main.o
File symtab strtab code data
DWARF debug STABS debug other file
--------- ----------------- ----------------- -----------------
----------------- ----------------- -----------------
---------------------------------------
39580 1404 3.55% 1649 4.17% 10507 26.55%
14399 36.38% 0 0.00% 11621 29.36% main.o (i386)
on the two versions. What do you find?
Jim
On Oct 15, 2008, at 2:46 PM, Eric Gorr wrote:
So, is there some flag I can set to get the size of the library down?
The flags I found were:
-feliminate-dwarf2-dups
However, this flag generated a bunch of the following errors:
{standard input}:50796:Expected comma after segment-name
{standard input}:50796:Rest of line ignored. 1st junk character
valued 32 ( ).
-feliminate-unused-debug-types
This flag didn't seem to affect the size of the library at all.
-glevel
I cannot go down to level 1 because of the information that would
not be included.
I cannot go up to level 3 because that would appear to just make the
library bigger.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden