What's the equivalent of BP register ( Frame Pointer ) on ARM processors?

前端 未结 1 908
暖寄归人
暖寄归人 2021-02-09 16:06

On intel platforms, BP is used to point to the beginning of the stack frame and to access the arguments [bp+0x??] and local variables [bp-0x??]

相关标签:
1条回答
  • 2021-02-09 16:11

    What you are looking for is the Frame Pointer. Generally, R7 acts as the frame pointer in THUMB mode and R11 acts as the frame pointer in ARM mode. But it is under the discretion of the OS to change this convention if it wishes to.

    Read here

    0 讨论(0)
提交回复
热议问题