language processors are the type of processors or software, which design to convert the (HLL) High-level language (JAVA, C++, Python) into machine language.

As programmers prefer to write code in one of the “HLL” because it is much easier to code in such languages.

However, the computer does not understand any languages.

it only understands its own machine language( binary language (0,1) ).

So, it becomes necessary to process an HLL program for making it an understandable language for the computer.

Language processors is system software which will perform this task.

There are types of processors which work differently. Below we have discussed about those.

Note:- code/source-code/script/program is use to denote the “HLL “.

The language processors are:

(i) Assembler:-

It is one of the language processors, Assembler converts the code written in an assembly language into its own language (1,0).

(ii) Interpreter:-

It is also one of the language processors which convert the High-level language into a binary language(0,1) by converting and executing line by line.

When there is an error in any line than it reports it and execution of script cannot resume until the error solved.

An interpreter must be present in the memory every time the source-code executed, as every time the source-code is run, a source-code first interpreted and then executed.

For debugging, it is very useful becuase it report the fault at the same time.

When an error removed than unnecessary memory usage takes places because it has to present in the memory always.

language processors - interpretor working

(iii)Compiler :-

The compiler also converts the program into machine language but the conversion is different from an interpreter.

It converts entire HLL in one go.

If there is an error in the script than compiler report all of it along with the line number.

When all the fault removed from the script than script recompiled and after that compiler not needed in the memory because the object program is already available in the memory.

Categories: software

Leave a Reply

Your email address will not be published. Required fields are marked *