Re: dead-code stripping, is it possible?
Re: dead-code stripping, is it possible?
- Subject: Re: dead-code stripping, is it possible?
- From: Kevin Hoyt <email@hidden>
- Date: Tue, 1 Jun 2004 14:01:47 -0700
I don't think this is what I'm looking for...
What I'm looking for is for a way for the linker to remove entire
functions or modules from the binary that are not called anywhere. I have
a 'small' utility that only needs a subset of the functions that are in
our source tree.
The way it is now, I wind up adding almost all of our source code so this
utility can link, even though I know most of the code is never called. I
know they are not called because the same set of files compiles and links
with CodeWarrior, which does do dead-code stripping.
The only other alternative I see is to spit up the source code more so I
can get just the functions needed for the utility.
Kevin Hoyt
Larry Fransson <email@hidden>
06/01/2004 11:47 AM
To: Kevin Hoyt/San Jose/IBM@IBMUS
cc: email@hidden
Subject: Re: dead-code stripping, is it possible?
On Jun 1, 2004, at 09:24, Kevin Hoyt wrote:
> Is it possible to have the linker strip dead code? Is there an option
> to
> enable this?
Check the project's build settings. Under General -> Deployment,
you'll see "Deployment Post-Processing" The help text for that option
says, "Activating this setting indicates that binaries should be
stripped and file mode, owner, and group information should be set to
standard values." Is that what you're looking for?
Larry Fransson
Seattle, WA
_______________________________________________
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.