循环展开,英文中称(Loop unwinding或loop unrolling),是一种牺牲程序的尺寸来加快程序的执行速度的优化方法。可以由程序员完成,也可由编译器自动优化完成。 循环展开最常用来降低循环开销,为具有多个功能单元的处理器提供指令级并行。也有利于指令流水线的调度。
循环展开从计算机编程诞生开始就已经成为一种优化技术了。
Loop unrolling has been an optimization technique since the dawn of computer programming.
标准的优化是循环展开;编译器将展开循环,以减少分支的数量。
A standard optimization is loop unrolling; the compiler will unroll the loops to reduce the number of branches.
循环展开是有益的,在这一点上边际利润下降的情况吗?
Conditions for loop unrolling to be beneficial and the point at which margins of return decrease?
应用推荐