Loading, please wait...

What are the types of translator in computer?

Aug 09, 2019 translator, 187 Views
types of translator

A translator who translates from one language into another, especially as a profession. The translator takes a program written in the source language as input and converts it into a program in the target language as output for one more thing a translator needs to convert the source code into machine code.

Here some translators:-


The compiler is a translator program that translates a high-level language to its equivalent machine level language. A compiler can convert the whole program (source) code into a machine code. It can check all types of error, range & limits but it generally checks all syntax errors in the program, not the logical part. It takes more time & space for execution. The compiler is a large program, which resides permanently on secondary storage. When the source program is to be translated, the compiler & the source program are copied from secondary storage to the main memory of the computer.


  • By using compiler all errors are present at one time.

  • Programming is easier in high-level language.

  • It is easily maintainable.


  • It takes a lot of time & memory.

  • It makes the program slower to convert.


The interpreter is another type of translator, which is used to translating a program written in a high-level language to machine level language. It is different from compiler because it converts each statement of the source program & translates it but if there is error occur at that line, it gives error manage, & we must remove it otherwise it will no go to the next part of the program to translate. In the interpreter, the object code of the program is not created it given the output so, that every time the program executes the whole source program has to convert it or translate it. It is slower than compiler when running a finished program because each statement has to be translated again & again.


  • Whenever an error occurs at any line it gives information.

  • It is less error-prone.


  • It translates line by line.

  • It takes a lot of time to translate.

  • It is not able to convert high-level code to object code.


Assembler is another type of translator that translates assembly code into machine code. An assembler translates the source program into equivalent object code which is nearest to the machine code. It also takes machine code into the main memory of the computer & makes it ready for execution.


  • Easier to understand & use than machine language.

  • Easier to locate & correct error.

  • Easier to modify.

  • No worries about the address.

  • Easily relocatable.


  • It is slower than the machine language.

  • A lot of mnemonic code required to learn.