它需要指令。
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分配在寄存器上,只需要一条指令。
The problem is that there is another form of calculation a stored instruction computer needs to do. That is it has to figure out where in memory instructions are.
计算机存储器还需要做另一种形式的计算,那就是计算出内存指令地址。
应用推荐