Re: Universal Binaries for an app built with different SDK versions
Re: Universal Binaries for an app built with different SDK versions
- Subject: Re: Universal Binaries for an app built with different SDK versions
- From: Lawrence Gold <email@hidden>
- Date: Tue, 17 Jan 2006 16:02:58 -0700
On Jan 17, 2006, at 2:58 PM, Steve Mills wrote:
So I finally got a chance to look at code size and stripping today
after converting one of our small projects to Xcode. (When I say
small, I mean the app code is only a couple hundred lines, but the
supporting app framework is still there.) The executable is 28M -
the CW version is 1.7M. I checked the project settings and
everything with "strip" in its name is turned on. I read strip's
man page and wasn't sure of which options I should use, to I just
typed "strip /path/to/app/executable" and it magically (at least
it's magic to me) reduced it to 1.2M. Of course, I guess I should
be using one of strip's options, because when I sample it there are
no function names (which I'd prefer to keep). Any hints?
The setting you probably need to turn on for full stripping is
Deployment Postprocessing, but this will have the same effect of
removing function names.
Or maybe I'm confused about what "strip" can do. Can it only strip
debugging info or can it also strip dead code?
As far as I know, it just strips debug symbols.
Hang on. I was looking through the project settings for the Release
config again and noticed that Generate Debug Symbols was turned on
(by default - I didn't do it - seems wrong to me). Level of Debug
Symbols was set to All Symbols, because I had Dead Code Stripping
turned on, which says All Symbols must be used. So I turned off
Generate Debug Symbols and it resulted in an executable of only
1.8M! Sampling still shows function names. Now I'm more confused on
what exactly Xcode's description of "debug symbols" is talking
about in the various project settings.
Have a look at
http://developer.apple.com/technotes/tn2004/tn2123.html
Specifically, the section labeled "Debugging Without Symbols". That
should clear up some of the confusion.
_______________________________________________
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