Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

LANGUAGE

PROCESSORS
The language processor that
translates the complete source
program as a whole in machine code
before execution is called compiler.
The C and C++ compilers are the
best examples of compilers. The
program translated in machine is
called object program. The source
code is translated to the object code
successfully if it is free of errors. If
there are any errors in the source
code, the compiler specifies the
errors at the end of the compilation.
The errors must be
removed before the compiler
can successfully compile the
source code. The object
program can be executed in a
number of times without
translating it again.

Interpreter program into machine statement is called an


The language processor code and executes it interpreter.
that translates (converts) immediately before
each statement of source translating the next
If there is an error in the statement the interpreter terminates its
translating process at the statement and displays an error message.
The OPWBASIC is an example of an interpreter.

Ssessanga Martin
003203/198
Compiler
The language processor that translates the complete source program as a whole in
machine code before execution is called compiler. The C and C++ compilers are the best
examples of compilers. The program translated in machine is called object program. The
source code is translated to the object code successfully if it is free of errors. If there are
any errors in the source code, the compiler specifies the errors at the end of the
compilation. The errors must be removed before the compiler can successfully compile
the source code. The object program can be executed in a number of times without
translating it again.

Interpreter
The language processor that translates (converts) each statement of source program into
machine code and executes it immediately before translating the next statement is called
an interpreter. If there is an error in the statement the interpreter terminates its translating
process at the statement and displays an error message. The OPWBASIC is an example
of an interpreter.

Ssessanga Martin
003203/198
Compiler
The language processor that translates the complete source program as a whole in
machine code before execution is called compiler. The C and C++ compilers are the best
examples of compilers. The program translated in machine is called object program. The
source code is translated to the object code successfully if it is free of errors. If there are
any errors in the source code, the compiler specifies the errors at the end of the
compilation. The errors must be removed before the compiler can successfully compile
the source code. The object program can be executed in a number of times without
translating it again.

Interpreter
The language processor that translates (converts) each statement of source program into
machine code and executes it immediately before translating the next statement is called
an interpreter. If there is an error in the statement the interpreter terminates its translating
process at the statement and displays an error message. The OPWBASIC is an example
of an interpreter.

Ssessanga Martin
003203/198

You might also like