bytecode

A compact, portable instruction format that a virtual machine or interpreter executes, instead of instructions for one particular processor.

In more detail

Languages such as Python, Java and C# compile source code to bytecode, which then runs anywhere the matching virtual machine or interpreter is installed. The virtual machine may interpret the bytecode or compile frequently used parts into native code while the program runs. Bytecode is not machine code: the processor cannot run it directly.

Examples

Python's dis module shows a function's bytecode; the course's instruction evaluator mimics its stack with a list.
Java: javac writes bytecode into class files for the JVM; javap -c shows it, such as 0: aload_0.
0: aload_0
1: invokespecial #1  // Method java/lang/Object."<init>":()V
V8's Ignition interpreter runs bytecode, and when optimised code is thrown away execution falls back to it.

Related terms

Taught in

References

Certification courses