• 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: Cocoa and dead-code stripping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa and dead-code stripping


  • Subject: Re: Cocoa and dead-code stripping
  • From: Andre Schnoor <email@hidden>
  • Date: Tue, 03 Jul 2007 15:21:42 +0200


Thomas Engelmeier wrote:

Am 02.07.2007 um 22:34 schrieb Andrew Demkin:

Sorry to be the contrarian voice here, but dead-code stripping is certainly possible for languages like Objective-C. It's one thing to say it's not supported, or of lesser utility, but technically, it is possible.

The way this would work is to have the development tools scan all message selector references (and class literal references) and strip all methods and classes that aren't referenced. This process would repeat until the tool can no longer perform any more stripping. There have been dynamic language implementations that behaved this way over 10+ years ago.

Er ... 30+ years ago (Smalltalk)

While it is possible, unused code stripping has its weaknesses, like others already pointed out. Unless Objective-C doesn't provide a means for tagging individual methods as "used dynamically" (i.e. invoked through some magic other than a direct call), automated stripping would cause more damage than help.

Andre
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa and dead-code stripping
      • From: "Dirk Stegemann (Mailing-Lists)" <email@hidden>
References: 
 >Cocoa and dead-code stripping (From: Steve Christensen <email@hidden>)
 >Re: Cocoa and dead-code stripping (From: Chris Suter <email@hidden>)
 >Re: Cocoa and dead-code stripping (From: Steve Christensen <email@hidden>)
 >Re: Cocoa and dead-code stripping (From: Uli Kusterer <email@hidden>)
 >Re: Cocoa and dead-code stripping (From: Steve Christensen <email@hidden>)
 >Re: Cocoa and dead-code stripping (From: Chris Hanson <email@hidden>)
 >Re: Cocoa and dead-code stripping (From: Andrew Demkin <email@hidden>)
 >Re: Cocoa and dead-code stripping (From: Thomas Engelmeier <email@hidden>)

  • Prev by Date: Re: Core Data and Document Packages
  • Next by Date: drag & drop objects
  • Previous by thread: Re: Cocoa and dead-code stripping
  • Next by thread: Re: Cocoa and dead-code stripping
  • Index(es):
    • Date
    • Thread