Reorder buffer(ROB,重排序缓冲区):处理器中的一种硬件结构,用来暂存“乱序执行”的指令结果与状态,并在提交(commit/retire)阶段按程序原本顺序依次写回,从而同时实现更高性能与精确异常(precise exceptions)。常见于乱序执行(out-of-order)CPU 设计中。
/ˌriːˈɔːrdər ˈbʌfər/
The CPU uses a reorder buffer to commit results in order.
CPU 使用重排序缓冲区来按顺序提交运算结果。
Even if instructions execute out of order, the reorder buffer helps the processor recover safely after a branch misprediction by discarding uncommitted results.
即使指令以乱序方式执行,重排序缓冲区也能在分支预测错误后通过丢弃未提交结果,帮助处理器安全地恢复状态。
reorder 来自 *re-*(再、重新)+ order(顺序),表示“重新排序”;buffer 指“缓冲区/暂存区”。合起来强调:先把乱序执行产生的结果暂存起来,等到合适时机再按“原始顺序”提交。