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.

compiler or interpreterassembler (1 to 1)runs directly

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.

6 of 6 still to sort.

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?

Link 1 of 4

First link · your turn

What do high-level languages do with the hardware's complex details?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

Low-level vs high-level

Low-level languagesvsHigh-level languages

A trade-off, not a league table: read each row as what you gain and what you give up.

Focus

Reading, learning and debugging

Low-level languages

Difficult to read, and complex to learn and debug

High-level languages

Easier to read, write and understand

The insight

This is the price of working close to the machine, and the reward of abstraction.

Control over the hardware

Low-level languages

Direct control; the programmer manages memory and hardware

High-level languages

Hardware details are hidden from the programmer

Getting to machine code

Low-level languages

Machine code runs directly; assembly is translated by an assembler, one to one

High-level languages

Translated by a compiler or an interpreter; one line can become many

Why choose it

Low-level languages

Efficient where precise control of hardware is needed

High-level languages

Generally easier to learn and use

Typical uses

Low-level languages

Operating systems, device drivers and embedded systems

High-level languages

Everyday software such as web browsers

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

1Machine code is the only language a computer runs directly. Everything else is translated into it.
2Assembly language is one to one with machine code; high-level code is not.
3Low-level gives direct control of the hardware but is difficult to read, learn and debug.
4High-level hides the hardware, so it is easier to read, write and understand.
5Neither is simply better: each suits different jobs.

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?
It runs it exactly as written, so the result is wrong. A computer cannot guess what you meant.
What is machine code made of, and what runs it?
Binary instructions (zeros and ones) that the CPU can run directly. Different CPUs have different machine code instructions.
What is assembly language?
A low-level language that replaces machine code with short, readable mnemonics such as ADD, LDA and BRA.
What translates assembly language into machine code?
An assembler.
How do assembly instructions relate to machine code instructions?
One to one: each assembly instruction translates into one machine code instruction.
Name two things that make low-level languages hard to work with.
They are difficult to read, and complex to learn and debug. The programmer must also manage memory and hardware directly.
What does direct control over hardware mean for a programmer?
The programmer manages memory and hardware directly, instead of having the details hidden.
What is a high-level language?
A human-readable language written in formal, structured English.
What is abstraction in a high-level language?
Hiding the complex details of the computer's hardware, which makes code easier to read, write and understand.
What can one line of high-level code turn into?
Many lines of machine code.
What is the difference between a compiler and an interpreter?
A compiler translates the whole program at once and creates an executable file. An interpreter translates and executes it line by line.
Which jobs suit low-level languages?
Operating systems, device drivers and embedded systems, where precise hardware control and efficient use of limited memory and processing power are needed.
Which kind of software is usually written in high-level languages?
Everyday software such as web browsers.
Is a high-level language simply better than a low-level one?
No. It is a trade-off: high-level is easier to learn and use, while low-level offers more direct control of the hardware.

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 posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

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.