The first instruction does the load and the second instruction rotates the value so that the requested address is at the beginning of the register.
第一个指令负责加载,第二个指令旋转此值以便所请求的地址位于寄存器的开始。
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)指令集,这意味着访问主存的惟一时机就是将内存加载到寄存器或将寄存器中的内容复制到内存中时。
Ila is a special load instruction that loads static addresses, in this case loading the address of the output string into register 3.
ila是加载静态地址的特殊加载指令,在本例中用来将输出字符串地址加载到3。
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分配在寄存器上,只需要一条指令。
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分配在寄存器上,只需要一条指令。
应用推荐