Language Translator

Language Translator

Language Translator: A translator is a computer program that translates a program written in a high-level language or in assembly language to machine level language or object language. Computers only recognize machine code (binary), this is an issue because programmers prefer to apply a diversity of high and low-level programming languages instead.

A programming language translator is the part of the software that translates a computer program written in some particular programming language into another programming language.

Example: Compiler, interpreter and assembler.

Differences between them are as follows:

Compiler – They are used to translate a program written in a high-level language into machine code (object code).

  • Translate a source program to an executed program.
  • It required more space.
  • Fast execution.
  • Example: FORTRAN, C++, COBOL, C etc.

Interpreter – These programs are able to read, translate and execute one statement at a time from a high-level language program.

  • Convert a source program line by line and executive it at the same line.
  • It required less space.
  • Fast development.
  • Example: LISP, Scheme, BASIC, APL etc.

Assembler – Assemblers are used to translate a program written in a low-level assembly language into machine code (object code) file so it can be used and executed by the computer.

Share This Post