• 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: Newbie question: What does "no-op" mean?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question: What does "no-op" mean?


  • Subject: Re: Newbie question: What does "no-op" mean?
  • From: Dale Jensen <email@hidden>
  • Date: Mon, 1 Sep 2008 12:01:44 -0500

On Aug 30, 2008, at 9:31 PM, Jon Davis wrote:

So do no-ops exist solely for the sake of being there for convention, i.e. "do this if you're implemented, ignore if not"?


In this case, that's what it's being used for. Initially (back when we coded in assembly language,) NOP was most often used for timing and aligning memory. Additionally, if you had to modify a live binary without source (legitimately, think Y2K,) NOPs can be used to modify the code directly without fluxoring up the jump tables.

I'm not sure that a NOP would actually show up in the resultant code of a NSAutoReleasePool call, I guess the compiler could substitute it, but it could also make the call and return nothing with the same result. Or just skip the line altogether. The documentation may be just using an old, but conventional, term, to let you know that nothing would happen.


dale

--
Dale Jensen, CEO
Ntractive, LLC
email@hidden
http://www.ntractive.com




_______________________________________________

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


  • Prev by Date: Re: Sending a GET or POST HTTP request with Cocoa
  • Next by Date: Re: Core Data: Instantiating linked entities
  • Previous by thread: Re: Sending a GET or POST HTTP request with Cocoa
  • Next by thread: Re: Newbie question: What does "no-op" mean?
  • Index(es):
    • Date
    • Thread