Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Interpreter, bytecode?

Também chamado de: interpreter · bytecode

Definition 1.8 University Computer Science — Year 1 · Capítulo 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.
Ler no capítulo →