A computer language translator is a program that translates a set of code written in one programming language into a functional equivalent of the code in another programming language.
Translator – usually included within programming software – translators convert high-level code into machine code.
-
Assemblers
An assembler translates assembly language into machine code (also known as source code). Assembly language is a low-level language written in Mnemonics that closely reflects the operation of the CPU.
-
Interpreter:
Interpreter translates code into machine code, instruction by instruction – the CPU executes each instruction before the interpreter moves on to translate the next instruction.
-
Compiler
A compiler translates the whole program into machine code before the program is run.
EVALUATION
- What is a translator
- List three types of translator
- Explain assemblers