1. A translator is simply a program that translates a program from one language to another without loosing the original form or functional structure of the original code.
2. If a translator translates from HLL to another HLL, it's called a TRANSLATOR or SOURCE-TO-SOURCE Compiler. Eg FORTRAN-TO-Ada, PASCAL-to-C etc.
3. If a translator translates from HLL to a LLL its called a COMPILER.
4. If the translation process is immediately executed, it's called an INTERPRETER.
5. If the translator translates target/machine code to source language, it's called a DECOMPILER
6. If the translator translates Assembly language to machine code, it's called ASSEMBLER. eg MASM, for the ooposite it's called DIASSEMBLER eg gdb, IDA.
NB: HLL - High Level Language
LLL - Low Level Language
Comments
Post a Comment
Do you love this post? Please leave a feedback