Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Interpreter, bytecode?

Ook bekend als: interpreter · bytecode

Definition 1.8 University Computer Science — Year 1 · Hoofdstuk 1 — From Source Code to a Running Program

An interpreter is a program that carries out another program by reading it, rather than translating it in advance into machine code. CPython, the usual Python, first compiles each function into bytecode: instructions for an imaginary machine, which a loop written in C fetches one by one and executes.

Two routes from source to execution. Above, Python compiles to bytecode and a loop interprets it, deciding types at each step. Below, gcc produces machine code that the processor executes directly, with every decision taken before the run.
Two routes from source to execution. Above, Python compiles to bytecode and a loop interprets it, deciding types at each step. Below, gcc produces machine code that the processor executes directly, with every decision taken before the run.
Lees in het hoofdstuk →