Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Interpreter: Difference between revisions

From Coderwiki
info, disadvantages, bytecode
(No difference)

Revision as of 07:38, 13 August 2025

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.

Disadvantages of interpreted languages

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

Bytecode interpreters

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.