开发者

View stack pointer in Xcode

I have attempted a partial answer to this question:

CPU cost order of magnitude for some basic operations

just because it was an interesting exercise whilst I am learning to use Xcode.

My answer would hold a little more water if I could identify the stack pointer in Xcode when targetting iOS. I know how to find my way to the registers, but I don't 开发者_JS百科know which one is SP.

Cheers!


Just earned the tumbleweed badge for this!

I have now discovered the answer. It's usually r13 in ARM processors, and is labelled $sp in the Xcode debugger. Obvious really, when you actually look for it!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜