6

在 intel 平台上,BP用于指向堆栈帧的开头并访问参数[bp+0x??]和局部变量[bp-0x??]

ARM中使用哪个寄存器?或者,是否仅基于 SP 的寻址?

[我没有基础架构可以编译和反汇编自己看。提到 AAPCS 也没有帮助我]

4

1 回答 1

7

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

于 2012-06-07T09:14:38.087 回答