Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bloated binaries (still)



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.


References: 
 >Bloated binaries (still) (From: David Catmull <email@hidden>)
 >Re: Bloated binaries (still) (From: Shawn Erickson <email@hidden>)
 >Re: Bloated binaries (still) (From: David Catmull <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.