Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Paper 2/Languages

The characteristics of a compiler and an interpreter

2.5.1 Languages

Practise exam questions

Languages — Note 3 of 3

The differences, benefits and drawbacks of using a compiler or an interpreter

What you need to know

A compiler translates the entire source code into machine code in one go before the program is run, creating a standalone executable file. An interpreter translates and executes the code line by line at runtime. Each has advantages and disadvantages related to speed, error handling, portability, and source code protection.

What to know

  • Compiler

    • Translates the ENTIRE program at once, producing a standalone executable file.
    • Compiled program runs/executes FASTER because it is already in machine code.
    • Reports all errors at the END of translation / creates an error report. Code will not run until there are NO errors.
    • The executable file can be run WITHOUT the compiler. End users don't need the translator.
    • End users have no access to source code — code cannot be stolen/copied/modified.
    • Only needs to translate ONCE — can be run again multiple times without re-translating.
  • Interpreter

    • Translates and executes code LINE BY LINE at runtime.
    • STOPS when it finds an error and when corrected continues running from the same position. Helpful for debugging.
    • Program needs to be translated EVERY TIME it is run — slower.
    • Source code and interpreter must both be present to run the program.

Key terms

Compiler

Translates the whole program into machine code before execution, producing a standalone executable file.

Interpreter

Translates and executes code line by line at runtime, without producing an executable file.

Exam technique

  • Tip:You need TWO differences. Common pairs: (1) all-at-once vs line-by-line, (2) creates executable vs does not, (3) errors at end vs stops at first error.
  • Tip:When asked for BENEFITS of a compiler (not just differences): executable file, faster execution, no need to re-translate, source code protection, end users don't need translator. Don't just describe HOW it translates.
  • Tip:'Faster/quicker' by itself is too vague — say 'compiled program runs faster' or 'executable runs faster than interpreted version'.
  • Example:Fill in the blanks — 'high-level' language; interpreter 'stops' when error found; 'no' errors; 'executable' file; 'without' the compiler.

Ready to test yourself?

Practise 2.5.1 questions
← Previous noteTranslators2.5.1 LanguagesNext topic →Editors; Error diagnostics; Run-time environment; Translators2.5.2 IDEs

Back to Languages

Revise another OCR GCSE topic: IDEs

Languages

Note 3 of 3

  1. 1High-level languages; Low-level languages
  2. 2Translators
  3. 3The characteristics of a compiler and an interpreter
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).