Re: Bloated binaries (still)
Re: Bloated binaries (still)
- Subject: Re: Bloated binaries (still)
- From: Shawn Erickson <email@hidden>
- Date: Fri, 27 Aug 2004 13:31:25 -0700
On Aug 27, 2004, at 1:00 PM, David Catmull wrote:
It turned out that, for some reason, generating debug symbols was
turned on for my Deployment style.
Then it turned out that, without ZeroLink, I had to include an extra
source file in the host app, full of functions it never uses. I'm
starting to miss CodeWarrior.
Be glad that the Apple folks have taken steps to enhance the open
source tool chain they use (gcc, etc.) as well as adding side features
in Xcode to improve performance, etc. when building.
One that was done, my plugins were down to a more reasonable 700-900k,
but to balance that out the app exploded from 20k to 6MB.
If you are using Xcode 1.5 you can also turn on dead code stripping to
avoid linking any functions that you are not using.
Was that 20k file some kind of ZeroLink stub thing, while all the real
code was somewhere else?
If you are using ZeroLink then things aren't linked together into an
executable but things are loaded in from someplace else as needed. You
cannot distribute a ZeroLinked application. ZeroLink is for use only
locally during development with the goal being to avoid linking and
more quickly allow fix an continue, etc.
On Aug 27, 2004, at 1:44 PM, Larry Nipko wrote:
In xcode for deployment target settings check the box called
Deployment
PostProcessing.
Thanks, that helped a lot. The plugins are now another ~150k smaller,
and the app is down to 1MB. I can live with that. I guess the real
mystery is, why wasn't this option turned on to begin with?
Because historically (and currently still I believe) doing an install
build was the modus operandi for Xcode / ProjectBuilder when building
for release which would do this step.
-Shawn
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.