What is translator?

Translator is nothing but a program. Translator is a program who convert the Source language to target language. Source program mean written by the programmer and target language mean machine understandable language.

There are three types of Translator in C.

Compiler: - It convert high level language (source code) to machine language (assembly language). Compiler take the whole program and convert it into machine language.

Interpreter: - It is same as the compiler but it not take the whole program for the conversion. It take line by line code and convert it into machine language.

Assembler: - Assembler convert the assembly language code to binary language code as a output.

Our C language only support two type translator. Compiler and assembler only. Interpreter come in java language and it always take input as a high level language and convert into machine language.

Advertisement here

Share this Page.

Post Your Comment