Bytecode

Edit · View history

Bytecode is an intermediate representation of a program that is typically produced by a compiler and executed by a virtual machine. It consists of a sequence of compact, platform‑independent instructions designed for efficient interpretation or just‑in‑time compilation. Bytecode bridges the gap between high‑level source code and machine code, enabling portability across different hardware architectures.

History

The concept of bytecode dates back to the 1970s, with early implementations such as the UCSD Pascal p‑code system, which used a portable intermediate language. The approach gained widespread prominence in the 1990s with the Java platform, where the Java Virtual Machine (JVM) executes Java bytecode. Shortly afterwards, Microsoft’s .NET Framework introduced the Common Intermediate Language (CIL), another form of bytecode executed by the Common Language Runtime. Many other languages, including Python, Ruby, and Erlang, compile to their own bytecode formats.

Features

Uses

Bytecode is employed in a wide range of systems:

See also