Translators Flashcards

OCR GCSE J277 Computer Science specification

Translator

A program that converts high-level or low-level code into machine code.

1 / 10

Ready to master these flashcards?

Sign in to study with spaced repetition and track your progress.

Sign In to Track Progress

Terms in this set (10)

1

Translator

A program that converts high-level or low-level code into machine code.

2

Purpose of translators

To convert code written by programmers into machine code that can be executed by the CPU.

3

High-level language

A programming language that is human-readable and abstracted from machine code.

4

Low-level language

A programming language that is closer to machine code, such as assembly language.

5

Compiler

A translator that converts the entire high-level program into machine code before execution.

6

Interpreter

A translator that converts and executes high-level code line by line.

7

Advantages of compilers

Produces an executable file, faster execution after compilation, and protects source code.

8

Disadvantages of compilers

Errors are only identified after the entire program is compiled, and recompilation is needed for changes.

9

Advantages of interpreters

Errors are identified immediately during execution, and no need for recompilation after changes.

10

Disadvantages of interpreters

Slower execution as code is translated line by line, and source code is not protected.

Genie

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Start Learning