开发者

View stack pointer in Xcode

开发者 https://www.devze.com 2023-02-10 06:27 出处:网络
I have attempted a partial answer to this question: CPU cost order of magnitude for some basic operations

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

精彩评论

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