Explore

Translators Flashcards
OCR GCSE J277 Computer Science specification
Ready to master these flashcards?
Sign in to study with spaced repetition and track your progress.
Sign In to Track ProgressTerms in this set (10)
Translator
A program that converts high-level or low-level code into machine code.
Purpose of translators
To convert code written by programmers into machine code that can be executed by the CPU.
High-level language
A programming language that is human-readable and abstracted from machine code.
Low-level language
A programming language that is closer to machine code, such as assembly language.
Compiler
A translator that converts the entire high-level program into machine code before execution.
Interpreter
A translator that converts and executes high-level code line by line.
Advantages of compilers
Produces an executable file, faster execution after compilation, and protects source code.
Disadvantages of compilers
Errors are only identified after the entire program is compiled, and recompilation is needed for changes.
Advantages of interpreters
Errors are identified immediately during execution, and no need for recompilation after changes.
Disadvantages of interpreters
Slower execution as code is translated line by line, and source code is not protected.

Want to Learn More?
Get personalised lessons, quizzes, and instant feedback from your AI tutor.
Start Learning