To learn how addressing modes work for load and store instructions on PowerPC processors, you must first understand a little bit about the PowerPC instruction format.
为了解寻址模式对于PowerPC处理器上的加载和存储指令是如何工作的,我们必须先要对PowerPC指令格式有点了解。
The PowerPC uses a load/store (also called RISC) instruction set, which means that the only time it accesses main memory is for loading into registers or copying a register to memory.
PowerPC使用了加载/存储(也成为RISC)指令集,这意味着访问主存的惟一时机就是将内存加载到寄存器或将寄存器中的内容复制到内存中时。
Note that test1 must load and store the global errs value each time it is incremented, whereas test2 stores localerrs in a register and needs only a single instruction.
可以看到test1()中每次加法都需要读取和存储全局变量errs,而在test2()中,localerrs分配在寄存器上,只需要一条指令。
Every processor comes with a unique set of operations such as ADD, STORE, or LOAD that represent the processor's instruction set.
每个处理器都有一个独特的诸如add、STORE或LOAD这样的操作集,这个操作集就是该处理器的指令系统。
Every processor comes with a unique set of operations such as ADD, STORE, or LOAD that represent the processor's instruction set.
每个处理器都有一个独特的诸如add、STORE或LOAD这样的操作集,这个操作集就是该处理器的指令系统。
应用推荐