Language Processor

Default Image

A computer only understands machine
language (0’s and 1’s) but now a day most of the high-level programming
languages use most of the English words that are not directly
understandable by computer. As you observe most of the foreign
delegations talk in their own language and respondents of our country
talk in native language and this thing create a communication gap. How
to resolve this problem? We arrange an interpreter that understand both
languages. In the case of computer, we have a language processor.
Language processor convert high-level language into computer understand
able language. Computer scientists create two types of processors:

  • Compiler
  • Interpreter

Compiler


This type of language processors converts
the whole code into machine understandable code at once. If there is
any error in the programme that is indicated. All the errors are
indicated at once. After removal of error compiler convert that code
into an object code. Object code is always free from syntax errors. If
you want to run object code on another computer, you have no need to
translate it again. Most of the high-level programming languages use
compiler to convert source code into machine code.


Interpreter


This type of language translator converts
the code into machine readable form statement by statement. If there is
any error in source code, interpreter with stop conversion and indicate
error. Further conversion will not start until that error removed.
Every error in source code will be indicated one by one after removal of
previous error. Interpreter doesn’t create any thing as like object
file. Every time we want to run source code it is mandatory that we must
have interpreter. Interpreter’s process of conversion is slower then
compiler. A few languages use interpreter.

Read Count: 3 times

Comments

No comments yet.

Leave a Comment