GCSE Computer Science, Unit 11, Lesson 2 of 3

Compilers, interpreters and assemblers

About 1 min to read, then 7 practice questions

Why translate?

The CPU only understands machine code, so source code must be translated.

CompilerInterpreter
Howtranslates the whole program oncetranslates and runs one line at a time
Errorsreports them all at the endstops at the first error
Outputan executable fileno file: it runs the source directly
Runningfast; no translator neededslower; the interpreter is needed every time
Source codestays privatemust be shared
Good forfinished softwarewriting, testing and learning

An assembler translates assembly language into machine code, one instruction for one instruction.

Practise this: 7 questions, about 4 min

Answering from memory soon after reading is what makes it stick, so now is a good time.

  • XP for every question right first time
  • This lesson fills in on your course map

Sign in to keep your XP and course map.

Start practising