Compiler Assembler Interpreter
Compiler Assembler Interpreter
Language Processors –
Assembly language is machine dependent yet mnemonics that are being used to
represent instructions in it are not directly understandable by machine and high-
level language is machine independent. A computer understands instructions in
machine code, i.e. in the form of 0s and 1s. It is a tedious task to write a computer
program directly in machine code.
The programs are written mostly in high level languages like Java, C++, Python
etc. and are called source code. These source code cannot be executed directly
by the computer and must be converted into machine language to be executed.
Hence, a special translator system software is used to translate the program
written in high-level language into machine code is called Language
Processor and the program after translated into machine code (object program /
object code).
2. Assembler –
The Assembler is used to translate the program written in Assembly
language into machine code. The source program is a input of assembler that
contains assembly language instructions. The output generated by assembler
is the object code or machine code understandable by the computer.
3. Interpreter –
The translation of single statement of source program into machine code is
done by language processor and executes it immediately before moving on
to the next line is called an interpreter. If there is an error in the statement,
the interpreter terminates its translating process at that statement and
displays an error message. The interpreter moves on to the next line for
execution only after removal of the error.