Aller au contenu
Brainlag

Thème

Couleur

High and low-level languages, compilers and interpreters

Informatique GCSE Updated Wed 7 Oct 2026

Processors only understand machine code, but people write programs in languages that are much easier to read. Translators bridge the gap, and choosing between a compiler and an interpreter is a common exam question.

Part 1 of 3: Learn it

In short

  1. High-level languages are close to English and work on any processor; low-level languages are tied to one type of processor.
  2. A compiler translates the whole program at once into an executable file.
  3. An interpreter translates and runs the program one line at a time.

Where this is in your specification

Spec points: AQA 3.4.4, OCR 2.5.1 and 2.5.2, Edexcel Topic 3

BoardTopic: Languages and translators
AQA 85253.4.4
Edexcel 1CP2Topic 3 (programming languages and translators)
OCR J2772.5.1 and 2.5.2
Eduqas C5009 Software development
Cambridge IGCSE 04784.2
National 5 C816 75Computer systems: translators

Levels of language

High-levelLow-level
ExamplesPython, Java, C#assembly language, machine code
Readabilityeasy for people to read and writehard: binary or short mnemonics
Processorportable across processorswritten for one processor family
Usemost softwaredevice drivers, embedded systems, code that must be very fast or small

Machine code is binary instructions the CPU runs directly. Assembly uses mnemonics such as LDA and ADD, with one assembly instruction for each machine code instruction.

The three translators

CompilerInterpreterAssembler
Translateshigh-level, whole programhigh-level, line by lineassembly into machine code
Outputan executable fileno executable: runs straight awaymachine code
Errorsreported for the whole program after compilingstops at the first error it reachesreported after assembling
Runningfast, with no translator needed afterwardsslower; the interpreter is needed every timefast

Integrated development environments (OCR)

  • An editor with features such as auto-indent, syntax highlighting and auto-complete.
  • Error diagnostics that point to the line with a problem.
  • A run-time environment to test the program, with breakpoints and stepping through code.
  • A built-in translator.
Quick check

Which translator turns assembly language into machine code?

Show the answer

An assembler.

Part 2 of 3: See it worked

Worked examples

Example 1

A games company is about to sell a finished game. Should it give customers compiled or interpreted code? Give two reasons.

  1. A compiled executable runs without the customer needing a translator
  2. It usually runs faster
  3. Customers cannot easily read or copy the original source code

Answer: Compiled: it runs faster, needs no translator, and keeps the source code private.

Example 2

A student is writing and testing a program. Why might an interpreter be useful at this stage?

  1. An interpreter runs the code line by line
  2. It stops at the first error and shows where it is
  3. The student can fix it and run again without waiting for a full compile

Answer: Errors are found and pointed out one at a time, which makes testing and debugging quicker.

Common mistakes

  • Saying a compiler runs the program line by line.
  • Saying an interpreter produces an executable file.
  • Calling assembly language high-level.
  • Saying low-level code is always better. It is faster and smaller, but much slower to write and not portable.
Quick check

Give one disadvantage of an interpreter.

Show the answer

The program runs more slowly, and the interpreter is needed every time it runs.

Part 3 of 3: Test yourself

Check yourself

Answer each one in your head or on paper first, then open it to check.

Which translator turns assembly language into machine code?

An assembler.

Give one disadvantage of an interpreter.

The program runs more slowly, and the interpreter is needed every time it runs.

Why is high-level code described as portable?

It can be translated to run on different types of processor.

Jobs that use this

Each link opens the job profile on the National Careers Service (England). In the rest of the UK: My World of Work (Scotland), Careers Wales, nidirect careers (Northern Ireland).

Ces fiches sont en anglais car elles suivent les programmes d'examen britanniques.

Full lessons and marked practice for this course are coming soon to Brainlag Learn. See courses