GCSE · Computer Science · Edexcel · Spec 1CP2
Low-level vs high-level languages
A program can look almost like English, yet the CPU can't run a word of it. So how far above the hardware do you want to write?
Computer Science · Structure
Every route ends at the CPU
Tap a box to read what it is and how close it sits to the hardware. Follow the arrows to see which translator does the work.
Tap any part of the diagram to see what it does.
Computer Science · Language levels
Which level is this?
Pick a line of code, then pick the level you think it is written at.
Still to sort
Machine code (0)
Binary instructions the CPU can run directly.
Where the line is: Assembly and machine code are both low-level. The difference is the look: zeros and ones, or mnemonics.
Assembly language (0)
Short readable mnemonics such as ADD, LDA and BRA.
Where the line is: Assembly is still written in terms of one machine's operations. A high-level language reads like structured English and hides the hardware.
High-level language (0)
Formal, structured English that hides the hardware's details.
These instructions come from a made-up instruction set, just for practice. It is not any real CPU's.
Predict, then check
Think about what the CPU actually receives.
A programmer meant to add 5 and 3, but wrote an instruction that subtracts instead. What does the computer do?
Abstraction
Reason it through
Why do high-level languages need translating before the computer can run them?
First link · your turn
What do high-level languages do with the hardware's complex details?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
However readable your code looks, the CPU only ever runs machine code.
What you need to know
- Computers run instructions exactly as written. They can't guess what you meant.
- Machine code is binary, zeros and ones. The CPU runs it directly, and different CPUs have different machine code instructions.
Have a goMaya says: "Machine code is machine code. Every CPU runs exactly the same zeros and ones." Is she right?
No. Different CPUs have different machine code instructions.
Machine code belongs to the CPU that runs it, so one CPU's zeros and ones are not automatically another's.
- Assembly language swaps the binary for short mnemonics such as ADD, LDA and BRA, and an assembler translates it into machine code.
- Each assembly instruction becomes one machine code instruction.
Have a goAn assembly program has 12 instructions. How many machine code instructions will the assembler produce?
12
Each assembly instruction becomes one machine code instruction, so the counts match.
- Machine code and assembly are low-level: written in terms of one machine's operations, with direct control over the hardware.
- Low-level code is difficult to read and complex to learn and debug, and the programmer manages memory and hardware directly.
- A high-level language is human-readable, structured English. It hides the hardware's complex details, which is called abstraction.
- One line of high-level code can become many lines of machine code.
Have a goA high-level program has 4 lines. Can you say exactly how many lines of machine code it becomes?
No. One line can become many, so there is no fixed count.
Unlike assembly, high-level code is not one to one with machine code.
- High-level code must be translated before it runs: a compiler does the whole program at once, an interpreter goes line by line.
- Low-level suits operating systems, device drivers and embedded systems. High-level suits everyday software such as web browsers.
The big picture
Machine code is binary that the CPU runs directly. Assembly language swaps that binary for readable mnemonics, one instruction for one instruction, and an assembler translates it. High-level languages hide the hardware's details, so they are easier to read, write and understand, but one line can become many lines of machine code and it must be translated first. Neither level is simply better: each suits different jobs.
Key points
Worked example
Problem
A team must write two things: a device driver for a new printer, and an everyday program that people will use to browse web pages. For each, decide whether to write it at a low level or a high level, and explain the reasoning.
⚠ Watch out
Thinking high-level languages are simply better. They are easier to read and write, but low-level languages give direct control of the hardware. It is a trade-off, and the right level depends on the job.
Memory hook
One assembly instruction, one machine code instruction. One high-level line, possibly many. Low-level sits close to the hardware; high-level is abstracted away from it.
Check yourself
Order machine code, assembly and high-level from closest to the hardware, and name each one's translator. (Machine code: none. Assembly: assembler. High-level: compiler or interpreter.)
Flashcards
(14)What does a computer do with an incorrect instruction?
What is machine code made of, and what runs it?
What is assembly language?
What translates assembly language into machine code?
How do assembly instructions relate to machine code instructions?
Name two things that make low-level languages hard to work with.
What does direct control over hardware mean for a programmer?
What is a high-level language?
What is abstraction in a high-level language?
What can one line of high-level code turn into?
What is the difference between a compiler and an interpreter?
Which jobs suit low-level languages?
Which kind of software is usually written in high-level languages?
Is a high-level language simply better than a low-level one?
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 Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)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 11 November 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.