Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 07:49, 13 August 2025 by Dylan (talk | contribs) (info, advantages, disadvantages, bytecode interpreters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

An interpreter is used in order to interpret the source code of an interpreted language so the computer understands the program.

Instead of converting the source code into machine code like a compiler would, an interpreter instead steps through each instruction of the program and executes code based on this.

Interpreted languages

edit edit source

Advantages of interpreted languages

edit edit source

Disadvantages of interpreted languages

edit edit source
  • Generally slower execution
  • The interpreter must be installed on the user's system

Bytecode interpreters

edit edit source

With some interpreters such as the python interpreter and the Java Virtual Machine, instead of stepping through the source code, the source code is instead first compiled into an intermediate representation, such as bytecode. This IR is then interpreted.

These bytecode interpreters are often known as process virtual machines.