From text to machine code: compilers, interpreters and the JIT
How Code Becomes Execution · Open board
The road from the words you type to the bytes the chip runs. This lesson walks that road one stop at a time and builds a small version of every stop.
Before you start.The CPU (fetch-decode-execute, the ISA, assembly) gave you a chip that fetches an instruction, decodes it and runs it, and understands nothing else. How Code Becomes Execution (compilers, stack & heap) gave you the two big ideas: a compiler translates the whole program before it runs, and an interpreter translates one step at a time while it runs. Build a stack machine built the small program that reads a list of numbers as instructions. This lesson opens the translator itself.
Lesson 32 of 41 in How Computers Work
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.