GCSE · Computer Science · OCR · Spec J277

Low-level languages

Every app you use ends up as 1s and 0s that the CPU runs. Some programmers still write code right down at that level. Why would anyone choose to?

Sort it out

Which language is it?

Climb from the bottom: start with what the CPU actually runs, then work your way up.

Still to sort

Machine code (0)

The lowest level

Assembly language (0)

Low level, one step up

Both low-level languages (0)

True of machine code AND assembly

High-level language (0)

Further from the machine

8 of 8 still to sort.

Three languages, one board. Pick a feature, then pick where it belongs. Some features belong to both low-level languages at once, so there's a column for that too.

Watch the assembler

One in, one out

A tiny program for an imaginary CPU. The mnemonics and the bit patterns are made up for this example: different CPUs have different machine code instructions.

Predict first: three lines of assembly go in. How many machine-code instructions come out?

1 LOAD 6
2 ADD 2
3 STORE 9
AssemblyMachine code (made up)In → out
LOAD 60001 01101 → 1

Output

 

Step 1: The assembler takes the first mnemonic and produces one machine-code instruction. Not two. Not half. One.

1 / 4

Each Next translates one more line. Nothing is run by the page: every row is written into the lesson.

Step 1 of 4: The assembler takes the first mnemonic and produces one machine-code instruction. Not two. Not half. One..

Watch out: The binary here is invented to show the pattern. Never learn it as a real CPU's code.

What do you think?

Are low-level languages finished?

Theo has just seen a page of assembly language. "Who'd ever write this?" he says. "It's unreadable. Surely everyone uses high-level languages now."

Which idea is closest to what you think?
How sure are you?

Embedded systems

?

Reason it through

Why do low-level languages matter so much in embedded systems?

Link 1 of 4

First link · your turn

Start with the system itself. What is an embedded system built to do?

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

Your turn

Write it, then mark it

Describe assembly language and how it is related to machine code. [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Your CPU only runs 1s and 0s. Meet the two languages that live right down at that level, and find out why they're still worth the hassle.

What you need to know

  • Low-level languages use terms aligned to the operations of a specific machine, so they sit close to machine code.
  • That closeness gives the programmer direct control over the hardware.
  • Machine code is the lowest level of all: binary instructions, 1s and 0s, that the CPU can run directly.
  • Different CPUs have different machine code instructions.
  • Have a goYour mate copies a machine-code program from his laptop's CPU and tries it on a completely different CPU. "Binary is binary," he shrugs. What has he forgotten?

    Different CPUs have different machine code instructions.

    Machine code isn't one universal binary that every CPU shares: each CPU has its own instructions, so 1s and 0s written for one aren't automatically right for another.

  • Assembly language swaps the binary for short mnemonics, like ADD, so humans can write and understand it more easily.
  • An assembler automatically translates assembly into machine code, and each assembly instruction becomes exactly one machine-code instruction.
  • Have a goAn assembly program is 40 instructions long. How many machine-code instructions does the assembler produce?

    40.

    It's one-to-one. The assembler doesn't merge instructions or split them: each mnemonic instruction becomes exactly one machine-code instruction.

  • Low-level programs run quickly because they interact directly with the hardware.
  • The cost: you manage memory and hardware yourself, and the complex syntax is hard to read, learn and debug.
  • Have a goGain and pain: name one thing a low-level programmer gets, and one thing they have to put up with.

    Gain: programs that run quickly. Pain: code that's hard to read, learn and debug (or managing memory and hardware directly).

    The speed comes from interacting directly with the hardware; it doesn't come free, because the human does the harder work.

  • They're ideal for operating systems, device drivers and embedded systems, which are small, dedicated systems that often have limited resources.
  • High-level languages use abstraction to be more human-readable, and are generally easier to learn and use.

The big picture

Low-level languages are close to machine code and give direct control over the hardware. Machine code is the binary a CPU runs directly, and it differs between CPUs. Assembly language swaps that binary for mnemonics such as ADD, and an assembler translates it one instruction for one. Low-level programs run quickly, but they're hard to read, learn and debug, and the programmer manages memory and hardware directly. That makes them ideal for operating systems, device drivers and embedded systems, while high-level languages use abstraction to be easier to read and learn.

Key points

1Low-level languages sit close to machine code, use terms tied to a specific machine and give direct control over the hardware.
2Machine code is binary the CPU runs directly; assembly language uses mnemonics, and an assembler translates it one-to-one.
3Low-level programs run quickly, but are hard to read, learn and debug, and the programmer manages memory and hardware directly.
4They suit operating systems, device drivers and embedded systems, where limited processing power and memory must be used well.
5High-level languages use abstraction to be more human-readable and are generally easier to learn and use.

Worked example

Problem

Exam-style: "Compare low-level languages with high-level languages." Build a strong answer step by step.

⚠ Watch out

Calling assembly language high-level because it uses words like ADD. It's still low-level: each mnemonic is tied to an operation of a specific machine and stands for exactly one machine-code instruction.

🧠

Memory hook

Machine code is the CPU's own binary. Assembly gives each instruction a nickname, a mnemonic like ADD. The assembler swaps every nickname back: one in, one out.

✓

Check yourself

Cover the page. Say what makes a language low-level, name the two low-level languages and how they are connected, then give one reason they are still worth the hassle.

Flashcards

(12)
What is a low-level language?
A programming language that uses terms aligned to the operations of a specific machine. It's close to machine code and gives direct control over hardware.
What is machine code?
The lowest-level language: binary instructions (1s and 0s) that the CPU can run directly.
Is machine code the same for every CPU?
No. Different CPUs have different machine code instructions.
What is a mnemonic in assembly language?
A short, readable code, such as ADD, used in place of a binary machine-code instruction.
Why was assembly language easier than machine code for programmers?
Its mnemonics are easier for humans to write and understand than binary codes.
What does an assembler do?
Automatically translates assembly language into machine code.
What is the relationship between assembly and machine-code instructions?
One-to-one: each assembly instruction becomes exactly one machine-code instruction.
Why do low-level programs run quickly?
They interact directly with the hardware.
What does a low-level programmer have to manage directly?
Memory and hardware.
Low-level languages are ideal for writing which three kinds of software?
Operating systems, device drivers and embedded systems.
What is an embedded system?
A small, dedicated system designed to perform a specific task efficiently, often with limited resources.
What does a device driver do?
Enables a computer to communicate with peripherals, such as a mouse or a printer.

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 OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

How this lesson was checked. This OCR GCSE Computer Science (specification J277)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 4 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.