Computer Note
Computer Note
It translates high-level language program into a machine language program that the
central processing unit (CPU) can understand. It also detects errors in the program.
Roles of translator are:
• Translating the high-level language program input into an equivalent machine
language program.
• Providing diagnostic messages wherever the programmer violates specification of
the high-level language program.
Different type of translators
Interpreter
2 Execution is Execution is
faster. slower.
3 Requires Memoryusage
more memory as is efficient as
linking is needed no
for the generated intermediate
intermediate object code is
object code. generated.
5 Programming Programming
languages like C, languages like
C++ uses python, BASIC,
compilers. and Ruby uses
interpreters.
Examples of Translators
Here are some examples of translators per type:
Translator Examples
OCaml
Interpreter List Processing (LISP)
Python
Fortran Assembly
Program (FAP)
Macro Assembly
Assembler Program (MAP)
Symbolic Optimal
Assembly Program
(SOAP)