• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dead-code stripping, pass two...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: dead-code stripping, pass two...
      • From: Steve Christensen <email@hidden>
References: 
 >dead-code stripping, pass two... (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: STL set inside inside a class
  • Next by Date: Re: dead stripping not working in intel build? & Re: dead-code stripping, pass two...
  • Previous by thread: Re: dead-code stripping, pass two...
  • Next by thread: Re: dead-code stripping, pass two...
  • Index(es):
    • Date
    • Thread