IT lexicon › Hardware › Register windows

Register windows

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

A processor design where each function call switches to a fresh set of registers that overlaps the caller's, so arguments are passed without touching memory.

David Patterson and Carlo Séquin built the idea into Berkeley RISC I in 1982, and Sun carried it into SPARC in 1987. There a function sees 32 registers: 8 global, 8 in, 8 local and 8 out. The save instruction slides the window so the caller's out registers become the callee's ins. Calls and returns cost next to nothing, and the compiler no longer has to save registers in the prologue.

The windows are finite, though. Recurse deeper than the hardware allows and a trap fires so the operating system can spill windows to the stack; every context switch has to save all the windows in use. The idea lived on in Itanium's register stack and in the Xtensa cores inside the ESP32, but most later architectures opted for large flat register files and let the calling convention do the work.

← Back to the lexicon