IT lexicon › Hardware › Branch delay slot

Branch delay slot

Hardware På svenska → Updated: 2026-11-07

The instruction position right after a branch that always executes whether or not the branch is taken — a pipeline detail early RISC architectures handed to the compiler.

In a simple five-stage pipeline, the processor doesn't know where a branch goes until the next instruction has already been fetched. Stanford's MIPS and Berkeley's RISC in the early 1980s turned that into a rule rather than a stall: the instruction after the branch always runs. The compiler's scheduler is supposed to fill the slot with something useful, typically an instruction from before the branch that doesn't affect the condition. If nothing fits, it gets a nop. SPARC added an annul bit that discards the slot when the branch isn't taken.

It was a cheap trick for one particular pipeline length and became a permanent debt. Superscalar and out-of-order cores have to emulate the semantics even though it no longer helps them. ARM and RISC-V skipped the idea, and MIPS Release 6 added compact branches without slots in 2014.

← Back to the lexicon