AI engineering glossary · Computing foundations

What is bytecode?

Bytecode: A compact, low-level instruction format produced from source code and executed by a virtual machine rather than directly by hardware. It lets the same program run on any system that has the matching virtual machine.

Level: advancedTopic: Computing foundations

Bytecode: an example

CPython compiles your .py file into bytecode, which you can inspect with the dis module.

Related terms

More Computing foundations terms

Where you learn it

Bytecode is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.