> On Feb 3, 2016, at 11:28 PM, Trygve Inda <cocoa...@xericdesign.com> wrote:
> 
> why do I get to
> see 3 method calls in my own app in the first example, but only the last call 
> in the second example?

Tail-call optimization, probably. If the last thing a function does is call 
another function, the optimizer will change the final subroutine call plus 
return into a jump. The downside is that the first function will no longer have 
an active stack frame so it won’t show up in backtraces, unless there is a 
symbol file available.

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to