什么是BP寄存器(帧指针)对ARM处理器的相同呢? [英] What's the equivalent of BP register ( Frame Pointer ) on ARM processors?

查看:987
本文介绍了什么是BP寄存器(帧指针)对ARM处理器的相同呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Intel平台上, BP 是用来指向堆栈帧的开始,以及访问参数 [BP + 0X ??] 和局部变量 [BP-0X ??]

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

哪个寄存器ARM中使用?或者,是解决基于对SP只?

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

[我没有基础设施来编译和拆解由我自己看到它。谈到AAPCS没有帮助我要么]

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

推荐答案

你所寻找的是帧指针。一般来说, R7 充当Thumb模式帧指针和 R11 充当ARM模式帧指针。但它是操作系统的判断下,如果它要改变这种习惯。

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.

href=\"http://msdn.microsoft.com/en-us/library/ms253599%28v=vs.80%29.aspx\">

Read here

这篇关于什么是BP寄存器(帧指针)对ARM处理器的相同呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆