
18 Introduction to Computational Models with Python
then translates it into a program in bytecode, which is the program in an
intermedia te for m.
Figure 1.10 Executing a J ava program.
The Java bytecode is not dependent on any particular platfor m or com-
puter system. This makes the bytecode very portable from one ma chine to
another.
Figure 1.10 shows how to execute a program in bytecode. The Java virtual
machine (JVM) carrie s out the interpretation of the program in bytecode.
1.10.5 Compiling and E xecuting C Programs
Figure 1.11 Compiling a C program.
Programs w ritten in C must be compiled, linked, and loaded into memory
before executing. An