Compiler
A translator that converts a whole high-level language program into machine code in one go, before the program is run. The machine code can then run without the source code.
Understanding Compiler in IGCSE Computer Science Paper 1
What it does: The translation of all the code happens first and the running happens afterwards, which is how a compiler works. Both are translators, but a compiler works on high-level language and an assembler works on assembly language. Translation is finished before execution starts. The program then runs from the machine code. The source code is not needed to run the compiled result, so it can be given to users without sharing the source code. The machine code is a separate translated file, so running it does not need the original source code.
Common mistakes: An assembler translates assembly language, not a high-level program. A high-level program needs a compiler, so the line should be exe <- COMPILE(source). The source file is not machine code, so it cannot be run directly. After compiling, the program must run the executable: RUN "calc.exe".
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 430–439) and word search (Modules 419–439).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
compilerFill in the Blanks
Spot the Error
Student with a class code? Join your class →