| Aspect | Compiler | Interpreter |
|---|---|---|
| Translation | Whole program at once | Line by line as it runs |
| Output | Creates executable file | No file created |
| Errors | Reports all errors after compilation | Stops at first error found |
| Execution speed | Fast (already translated) | Slower (translates each time) |
| Distribution | Can share without source code | Must share source code |
| Development | Slower (recompile after changes) | Faster (run immediately) |
This study notes covers Deep Dive: Compiler vs Interpreter within Translators for GCSE Computer Science. Revise Translators in 3.4 Computer Systems for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This topic appears regularly enough that it should still be part of a steady revision cycle. It is section 5 of 8 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Practice questions for Translators
Which type of translator converts an entire high-level language program into machine code before the program runs?
Explain why a compiled program runs faster than an interpreted program.