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
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 62 ADD 23 STORE 9
| Assembly | Machine code (made up) | In → out |
|---|---|---|
| LOAD 6 | 0001 0110 | 1 → 1 |
Output
Step 1: The assembler takes the first mnemonic and produces one machine-code instruction. Not two. Not half. One.
Each Next translates one more line. Nothing is run by the page: every row is written into the lesson.
Embedded systems
Reason it through
Why do low-level languages matter so much in embedded systems?
First link · your turn
Start with the system itself. What is an embedded system built to do?
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
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?
What is machine code?
Is machine code the same for every CPU?
What is a mnemonic in assembly language?
Why was assembly language easier than machine code for programmers?
What does an assembler do?
What is the relationship between assembly and machine-code instructions?
Why do low-level programs run quickly?
What does a low-level programmer have to manage directly?
Low-level languages are ideal for writing which three kinds of software?
What is an embedded system?
What does a device driver do?
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 OCR GCSE Computer Science topics
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.