Translators

Today we are going to discuss translators that used in programming languages. What is this translator? A man? Is that the usual translator. Translators duty is the same as human translators. Translate one language to another language. But this translator is a computer program. A translator is a computer program that converts specific programming language to machine language. Each programming language has a unique translator. In this blog post, we only discuss the main types. There are 3 main types. We are going to study their similarities and differences etc.
  1. Assembler
  2. Compiler
  3. Interpreter

Assembler

  • Assembler is used to convert assembly language to machine language.
Both compiler and Interpreter use to convert high-level programming language to machine level language. But they work in different ways. For example, imagine A person from a non-English country speaks in the UN, but he can not speak English. So he needs a translator. He finds two types of translators. The first one listens to the whole speech, and after that, he translates it to English. The compiler also works similarly to the first translator. But the second translator, he listens to one sentence of the speech and, after that, translate it to English. This way, he translates the whole speech sentence by sentence. It is similar to the Interpreter.

Compiler

  • Translate the whole program to machine language at once.
  • Need more time
  • Generate error report at the end

Interpreter

  • Translate the program line by line
  • Faster than the compiler. Execute immediately
  • Generate error report line by line(Covert program until find a error)
2
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x