Skip to content
Latchkey

What Is a Register Machine?

A register machine is a model of computation, used by hardware CPUs and some virtual machines, where instructions name the registers they read from and write to. Operations specify their source and destination registers explicitly rather than working on a stack. Register-based virtual machines often need fewer instructions than stack-based ones for the same work.

Why it matters

Register-based designs can execute fewer, denser instructions, which some virtual machines exploit for speed. Comparing them to stack machines explains a key design choice in interpreter and compiler construction.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →