本文作者:景明我们以一段 C 代码为例,来看一下代码被编译成二进制可执行程序之后,是如何被 CPU 执行的。
The use of SP as an operand in an instruction, indicates the use of the current stack pointer.堆栈指针,随时跟踪栈顶地址,按"先进后出"的原则存取数据。
指向当前栈指针。堆栈指针总是指向栈顶位置。一般堆栈的栈底不能动,所以数据入栈前要先修改堆栈指针,使它指向新的空余空间然后再把数据存进去,出栈的时候相反。
A 64-bit Program Counter holding the address of the current instruction.Word Zero Register(WZR)零寄存器,用于给int清零
保存了将要执行的指令地址
欢迎光临 迅维网 (https://www.chinafix.com/) | Powered by Discuz! X3.4 |