LANGUAGE PROCESSORS?

Language processors


Programmers write codes in high-level language however the computer does not understand any other language other than its own machine language of zero and one that is binary language.

Therefore it is necessary to process the High-level language into binary language so it is done by the language processors

  • ASSEMBLER

This language processor converts the program written in assembly language into machine language

  • INTERPRETER

This language processor converts high-level language program into machine language(binary) by converting and executing line by line.

If there is any error in any line it reports at the same time and program execution can not resume until the error is rectified.

Advantage

  • For error debugging, an interpreter is useful as it reports the error at the same time.

Disadvantage

  • But once errors are removed usage of memory takes place as interpreter must always be present in memory
  • COMPILER

It also converts the High-level language into machine language(binary) but conversion method is different it converts in one go and reports all the error of program after conversion along with line numbers.

Advantage

  • After all, error is are removed, the program is recompiled and after that, the compiler is not needed in the memory as the object program is available

Disadvantage

  • Interpreter is much better for error removal than compiler

 

Leave a Reply

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