• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Library tripled in size with GCC 4.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Library tripled in size with GCC 4.2
      • From: Eric Gorr <email@hidden>
References: 
 >Library tripled in size with GCC 4.2 (From: Eric Gorr <email@hidden>)
 >Re: Library tripled in size with GCC 4.2 (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Library tripled in size with GCC 4.2 (From: Eric Gorr <email@hidden>)
 >Re: Library tripled in size with GCC 4.2 (From: Chris Espinosa <email@hidden>)
 >Re: Library tripled in size with GCC 4.2 (From: Eric Gorr <email@hidden>)
 >Re: Library tripled in size with GCC 4.2 (From: Lyndsey Ferguson <email@hidden>)
 >Re: Library tripled in size with GCC 4.2 (From: "Sean McBride" <email@hidden>)
 >Re: Library tripled in size with GCC 4.2 (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: FileMerge can't merge xibs?
  • Next by Date: xcodebuild internal error while creating dependency graph
  • Previous by thread: Re: Library tripled in size with GCC 4.2
  • Next by thread: Re: Library tripled in size with GCC 4.2
  • Index(es):
    • Date
    • Thread