为什么堆栈指针在寄存器堆中是特殊的?
我对寄存器文件有疑问。 众所周知,堆栈指针是寄存器文件中的特殊寄存器之一。为什么专门确定它? 我的意思是编译器可以将任何寄存器定义为堆栈指针,并且可以使用它,因为它知道哪个定义为编译过程中的堆栈指针。因此,无需任何特殊注册。 谢谢。
I have a question about the register file.
As I know, the stack pointer is one of the special registers in the register file. Why it is determined specifically?
I mean compiler can define any register as a stack pointer and it can use it because it knows which is defined as the stack pointer during the compilation. So, no need for any special register for it.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论