For example, a compiler may choose to optimize a loop index variable by storing it in a register, or the cache may delay flushing a new value of a variable to main memory until a more opportune time.
例如,编译器为了优化一个循环索引变量,可能会选择把它存储到一个寄存器中,或者缓存会延迟到一个更适合的时间,才把一个新的变量值存入主存。
So, the best declaration for an int variable in a tight loop would be.
那么,在一个小循环(tight loop)中,定义一个整型变量,最好类似这样。
As for the loop count variable, the first set variable action sets it to 2.
至于循环计数变量,第一个变量设置操作将其设置为2。
应用推荐