通过减少循环中计算机需要执行的指令,节省了执行时间。
This saves time by reducing the number of overhead instructions that the computer has to execute in a loop.
使用带有repeat前缀的字符串指令将该函数优化成一个非常紧密的循环。
This function is optimized as a very tight loop using string instructions with the repeat prefix.
由于Quantify为每个指令都测量机器循环的数量,所以当应用程序运行在远程机器上的gdb之下时,也能生成有用的数据。
Since Quantify measures the number of machine cycles for each instruction, it generates useful data even when run under GDB on a remote machine.
And I want to remind you, that block of code is a set of instructions, the same set of instructions that are going to be done each time through the loop.
我想提醒大家,这块代码是一个指令集,一个每次循环都会被执行的相同指令集,会变化的仅仅是变量的值。
And when I'm done with the whole thing, before I end the increment of the variable, you know, when I'm done, I'm just not returning anything out.
在循环外面初始化它,然后做一个终结测试,然后在循环内部有一个指令集,在这个例子中,就是对余数做检查,然后显示信息,当我完成了整个循环。
应用推荐