Mailing Lists: Apple Mailing Lists

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

what's supposed to get stripped?



I have a bunch of iMovie plug-in projects that I moved from CodeWarrior to Xcode (2.2.1) as part of moving to UB. Since there is a lot of shared code, I first build that as a separate static library that gets linked with all the plug-ins as they are built.

I've been noticing that the plug-in executable size has grown by considerably more than twice the previous PPC-only size. When I say considerable, I mean a 48K PPC-only executable growing to a 196K PPC +Intel executable.

I have dead code stripping turned on as well as symbol stripping (both ld and strip) and even a separate exported symbols file (all I want to export is main). Level of debug symbols is set to full, per Xcode's note that stripping works better that way.

When I run "nm -mg" on a plug-in's executable, I see that there are a lot of extra import symbols when compared with a plug-in built by CodeWarrior. After tracking it down more, it looks like some unreferenced non-virtual class methods are being included and thus dragging along the Mac OS API symbols and any other methods they use.

Am I missing something very basic here, or what? It's frustrating because I can't see anything else to turn on that would strip further.

I have a test project that shows what's happening that I can mail off- list if that will help.

steve

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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.