Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Interpreter, bytecode » ?

Aussi appelé : interpreter · bytecode

Definition 1.8 University Computer Science — Year 1 · Chapitre 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.
Lire dans le chapitre →