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

给你一囗甜甜゛ 提交于 2019-12-04 23:30:20

问题


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??].

Which register is used in ARM? Or, is the addressing based on SP only?

[I don't have infrastructure to compile and disassemble to see it by myself. Referring to AAPCS did not help me either]


回答1:


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



来源:https://stackoverflow.com/questions/10928646/whats-the-equivalent-of-bp-register-frame-pointer-on-arm-processors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!