Introduction of Language Processors
Assembly language is a machine-dependent yet. That is being used to represent instruction in it. They are not directly understandable by machine and high-level language is machine independent.
If the computer understands instruction in machine code ie:- In the form of 0 and 1. It is a tedious task to write a computer program directly in the machine code. The program is mostly written in a high-level language like- Java, Python, C++.. etc 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 transfer system software is used to translate. The program written in a high-level language into machine code is called language processors. And the program offer translated into machine code is called object program/object code.
A language processor is a special type of computer software. That has the capacity of translating the source code into machine code.
The language processors can be divided in the following three parts:-
The Language processors, That reads the complete source program written in high-level language as a whole in one go and translate it into an equivalent program in the compiler.
Ex:- C, C++, Java.
The Assembler is used to translate the program written to assembly language into machine code.
Source code———> Assembler—————> Object code
The translate of Single statement of source program into machine code is done by language processors and execute it immediately before moving on to the next line is called Interpreter