P6 Micro-Ops: Decode, Flags, Control Flow, and Macro Aliasing
In the earlier z386 and z486 posts, we watched Intel's 32-bit x86 designs evolve from a microcoded state machine with early-start overlap (386) into a tightly coupled 5-stage pipeline (486). Even on the dual-pipe Pentium (1993), what flowed down the pipeline was still recognizably an x86 instruction: decode logic resolved prefixes and addressing modes, walked the instruction through an in-order datapath, and retired results in lockstep.
With the P6 microarchitecture, introduced in the Pentium Pro (1995) and carried forward through Pentium II, Pentium III, and Pentium M, Intel changed things dramatically. Externally, a P6 chip still runs raw 16- and 32-bit IA-32 binaries. Internally, x86 instructions cease to exist after the decoder. Every instruction is translated into P6's private RISC-like instruction set: micro-operations (µops).
doom1.wad, shown at 10× speed) on p6.c—a sequential C simulator of P6 micro-ops.