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.
- Assembler
- Compiler
- Interpreter
Assembler
- Assembler is used to convert assembly language to machine language.
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)