• 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: stripping symbols and dead-code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stripping symbols and dead-code


  • Subject: Re: stripping symbols and dead-code
  • From: "Frode" <email@hidden>
  • Date: Thu, 17 Nov 2005 23:26:27 +0100
  • Importance: Normal

On Nov 17, 2005, at 7:14 AM, Frode wrote:

>> I'm using XCode 2.2, gcc-4.0.0, ld version "cctools-590.obj~12".
>Xcode 2.2 shipped with gcc 4.0.1, so I hope that's a typo above.

I hope that's a typo because my gcc with "gcc --version" prints

powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 (Apple Computer, inc, build
5026)

And Xcode:

Version 2.2 (Seed)
Xcode IDE: 622.0
Xcode Core: 622.0
ToolSupport: 610.0


>> 1. Is there any option to activate symbol-stripping besides dead-code
>> stripping in the build settings, besides adding -Wl,-s to "Other
Linker
>> Flags"?
>
>Deployment Postprocessing will do this for you.  There may be other
>options which do it, too.

That did the trick! :-)

[I noticed that "Deployment Postprocessing" still gives larger files
than "-Wl,-s", compare the sizes

strip (-Wl,-s)
1,518,745 bytes

strip ("Deployment Postprocessing")
1,635,689 bytes]

That's it, about 100 kB larger. Am I stripping to much with -Wl,-s or
can I safely use it in a deployment product instead of "Deployment
Postprocessing"?


>> The most efficient in my case seems to be the symbol strip. There are
>> about 80 kB extra if I both dead-strip and symbol-strip.
>
>Symbol stripping with strip is different from symbol stripping at link
>time.  In particular, the linker has additional information about the
>layout of your executable that strip doesn't have, so it can strip
>slightly more.

I was just curious how this could be, since I supposed dead-code
elimination + stripping would produce even lesser code than just DCE.
But appereantly this is not the case?


Thanks for the help!
/Roggan


 _______________________________________________
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: stripping symbols and dead-code
      • From: "William H. Schultz" <email@hidden>
    • Re: stripping symbols and dead-code
      • From: Dirk Stegemann <email@hidden>
References: 
 >Re: stripping symbols and dead-code (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: Xcode 2.2 is now available [Part 2]
  • Next by Date: Re: XCode 2.2 can't find framework
  • Previous by thread: Re: stripping symbols and dead-code
  • Next by thread: Re: stripping symbols and dead-code
  • Index(es):
    • Date
    • Thread