Programming languages and translators
CPUs only understand machine code, but people prefer to write in languages like Python. Translators bridge the gap.
Low-level languages
Assembly language: short mnemonics such as LDA or ADD, each matching one machine code instruction. It is translated by an assembler.
Low-level code gives direct control of hardware and memory and can be very fast and compact. It is specific to one type of processor and hard to write. Used for device drivers and some embedded systems.
High-level languages
One statement may become many machine code instructions.
They are easier to write, read and debug, and they are portable: the same code can run on different types of processor once translated.
Compiler or interpreter?
| Compiler | Interpreter |
|---|---|
| Translates the whole program into machine code before it runs | Translates and runs the code one line at a time |
| Creates an executable file that runs quickly without the translator | Needs the interpreter every time the program runs |
| Reports errors after translating the whole program | Stops at the first error, which helps debugging |
| Source code can be kept private | Source code must be shared to run it |
A games company wants to sell its game without sharing its source code. Which translator should it use?
- A compiler produces a standalone executable file.
- Customers can run it without seeing or needing the source code.
Answer: A compiler
Machine code runs directly; assembly is translated by an assembler. High-level languages are easier and portable. Compilers translate everything first into a fast executable; interpreters translate line by line and stop at the first error.
- Assembler
- Translates assembly language into machine code.
- Binary
- Base 2: the number system that uses only the digits 0 and 1.
All GCSE and International GCSE Computer Science key terms and definitions โ
Try two quick questions
See if it has sunk in. Answers are marked straight away.
2 more questions
Try each one, then tap to check.
Which is a feature of a high-level language?
- It gives direct control of registers
- It uses English-like statements and is easier to read
- It runs without translation
- It only works on one type of processor
Show the answer
Answer: It uses English-like statements and is easier to read
High-level code is readable and portable.
Why is assembly language NOT portable?
- It is too long
- It cannot be translated
- It is written for one type of processor
- It only runs on laptops
Show the answer
Answer: It is written for one type of processor
Assembly is tied to one processor's instruction set.
Check you have got it
Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.
- Pearson Edexcel GCSE Computer Science (1CP2) specification, topic 3.3.1, 3.3.2
- Pearson Edexcel International GCSE Computer Science (4CP0) specification, topic 4.5.1, 4.5.2
Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.
What do exam command words like explain and evaluate mean? โ