P-1.1 What the Machine Actually Executes
You can explain what happens between the text you write and the instructions a processor runs, and say why the same program written in two languages performs differently.
Most people learn a language before they learn what a computer does with it, and then spend years with a fuzzy picture of both. This topic fills that in: a processor executes a small, dull set of numeric instructions, and everything else is a scheme for producing them. The confusion worth clearing early is that compiled and interpreted are not properties of a language but of an implementation, which is why the same language can be both.
Work through these
What a processor does in one cycle: fetch, decode, execute
A processor repeats a very short loop forever, reading a numbered instruction, working out what it means, and doing it. Everything a computer appears to do is that loop running billions of times a second, which is worth seeing once before any language makes sense.
Source code, machine code, and the tools that get from one to the other
Your source file is text and a processor cannot read text. A compiler translates the whole file into machine instructions ahead of time, an interpreter reads and acts on it line by line, and most real systems do some of both.
CS50x: Introduction to Computer Science · CourseCompiled and interpreted are properties of an implementation, not of a language
There is nothing about C that requires compiling and nothing about Python that forbids it. The distinction belongs to the tool you run your code through, which is why the same language often has several with very different performance.
Why one language runs faster than another on the same problem
Speed differences come from how much work happens while the program is running rather than before it: checking types, looking up names, and allocating memory all cost time. Knowing where that work went is the beginning of ever making anything faster.
Write the smallest program you can, and follow it from text to output
Take a program of three or four lines and account for every stage it passes through before anything appears on screen. Doing this once, deliberately, replaces a great deal of vague belief about what computers do.
Sign in to keep your progress.
Free resources
We haven't checked most of these for screen reader use yet.
Links last checked 31 Aug 2026.
Stuck here?
Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.
Checking your session…
Topics shown in module order.