IT lexicon › Programming › Stack Machine

Stack Machine

Programming På svenska → Updated: 2026-11-12

Virtual machine architecture using a stack for operands, simple yet effective for bytecode interpretation.

Instead of storing values in a large number of registers, a stack machine uses a single stack where instructions push and pop values. Instructions are compact, often just a byte or two. This design made it simple for compilers to generate code and trivial for interpreters to implement—many early language implementations had a stack machine at their core, from Forth engines to Java bytecode to WebAssembly.

← Back to the lexicon