GCSE · Computer Science · AQA · Spec 8525
Low-level vs high-level languages
You type one line: c = a + b. Easy. But how many instructions does the processor actually need for it? Have a guess, then step through it below.
Computer Science · Programming languages
One line in. How many instructions out?
In Python you write c = a + b, with a = 3 and b = 4. One line. Now step through what a processor has to do for it. This is assembly language for an imaginary processor: real CPUs each have their own instructions.
Commit first: c = a + b is ONE line of Python. How many instructions do you reckon the processor needs?
1 LDR R0, a ; copy a from memory into register R02 LDR R1, b ; copy b from memory into register R13 ADD R2, R0, R1 ; add R0 and R1, put the answer in R24 STR R2, c ; copy R2 back into memory as c
Variables
Output
Step 1: Instruction 1: load a from memory into R0. A register like R0 is a tiny storage spot inside the processor. No adding yet.
Step through the trace — every value is the lesson’s, not run by the page.
Computer Science · Language levels
Which kind of code is it?
Sort each item into machine code, assembly language or a high-level language.
Still to sort
Machine code (0)
Binary instructions the CPU understands.
Where the line is: Machine code and assembly are both low-level. Machine code is the binary one, and the only language the CPU runs directly.
Assembly language (0)
Low-level, written for one specific machine, but not 0s and 1s.
Where the line is: Low-level like machine code, but written as short instruction words rather than 0s and 1s.
High-level language (0)
Human-readable, hides the hardware.
Where the line is: Further from the hardware than either of the others. One line of it becomes many lines of machine code.
You've just seen a high-level line and the low-level steps underneath it. Now you do the sorting. Commit to each one before you check.
Computer Science · Translators
Your Python can't run itself
Choose a translator to see where your high-level code ends up.
Translator
2 possible routes to the CPU.
The CPU only runs machine code, so something has to translate your high-level code first. Pick a translator and follow the route.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
How far is your code from the hardware?
What you need to know
- A computer runs instructions exactly as written. It can't guess what you meant, so a wrong instruction still gets carried out.
Have a goSam's program has one wrong instruction in it. Sam shrugs: 'Relax, the computer will spot it and quietly fix it for me.' What will the computer actually do?
Run it exactly as written, mistake and all.
Sam is hoping the computer guesses what was meant, but it can't make assumptions, so the incorrect instruction is still carried out.
- Machine code is the lowest-level language: binary 0s and 1s, and the only language a computer can run directly.
- Different CPUs have different machine code instructions, so low-level code is written for one specific machine.
- Assembly language is low-level too. Even a simple calculation takes several lines of it.
- Low-level languages give direct control over the hardware, and run quickly because they interact with it directly.
Have a goYour code has to work the hardware directly, switching parts on and off itself. Would you reach for a low-level or a high-level language?
Low-level.
Low-level languages give direct control over the hardware; picking high-level because it's easier ignores what this job needs.
- A high-level language, such as Python, is human-readable formal structured English, using abstraction to hide the hardware's complex details.
- One line of high-level code, such as c = a + b, is translated into many lines of machine code.
- High-level code must be translated into machine code before it can run, by a compiler or an interpreter.
Have a goA laptop has your Python program saved on it, but no compiler and no interpreter installed. Can its CPU run your Python?
No. Nothing there can turn it into machine code.
It's tempting to think the CPU reads Python, but it only runs machine code, so the code must be translated first.
- Low-level code is hard to read, learn, debug and maintain. High-level languages are generally easier to learn, read and use.
- Low-level languages are used where hardware control and efficiency are essential: operating systems, device drivers and embedded systems.
The big picture
A computer's processor can only run machine code, exactly as written. Low-level languages sit close to that and give direct control of the hardware. High-level languages like Python sit further away, are easier for people, and have to be translated first by a compiler or an interpreter.
Key points
Worked example
Problem
A company is writing a device driver. A colleague says, 'Use Python, it's easier.' Decide whether a low-level or a high-level language is the better fit, and justify your answer.
⚠ Watch out
Thinking the computer understands your code the way a person would, so it'll work out what you meant. It won't. The processor only runs machine code, exactly as written.
Memory hook
Low-level: low to the ground, right next to the hardware. High-level: up in the clouds, with the hardware hidden far below.
Check yourself
Cover the page. Explain to a friend why c = a + b can't go straight to the CPU. Use these words: high-level, translated, machine code.
Flashcards
(12)What does the 'level' of a programming language describe?
What is machine code?
Do all CPUs share the same machine code?
Name a low-level language other than machine code.
What does abstraction do in a high-level language?
How many lines of machine code does one line of high-level code become?
What must happen to high-level code before a computer can execute it?
What does a compiler do?
What does an interpreter do?
What does a programmer have to manage in a low-level language?
Why are low-level languages still used when high-level ones are easier?
How does a computer treat an incorrect instruction?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 29 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.