Re: dead-code stripping, pass two...
Re: dead-code stripping, pass two...
- Subject: Re: dead-code stripping, pass two...
- From: Greg Hurrell <email@hidden>
- Date: Thu, 18 May 2006 00:44:44 +0200
El 17/05/2006, a las 20:27, Steve Christensen escribió:
After doing a little more poking around, I found that the problem
appears to be that unused class methods are not being stripped out,
which means that the method code as well as any that they
reference, etc., etc., gets left in the binary. These are not
virtual methods, BTW.
I presume you're talking about C++ methods. If you're talking about
Objective-C then I would expect them not to be stripped out because
of the dynamic nature of the language.
These docs:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/
XcodeUserGuide20/Contents/Resources/en.lproj/bs_linking/
chapter_34_section_8.html
Say that "Objective-C runtime data" "may" be included in the list of
"live symbols" that are considered for stripping, but it doesn't go
into any further detail about exactly what "may" be considered. In my
experience no methods are ever stripped because the compiler can
never know for sure when they might be invoked (from dynamically
loaded code, from an NSInvocation etc).
Cheers,
Greg
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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