Complete Computer Knowledge Portal

Saturday, March 30, 2013

Difference Between Compiler and Interpreter

Sr. No.
Compiler
Interpreter
1
Compiler is used to translate high level instruction into machine language.
Interpreter is used to translate the high level instruction into an
intermediate code.
2
The compiler executes the entire program at a time.
The interpreter executes each and every line of program individually.
3
Compiler reports errors at the end of program compilation.
An interpreter reports error at the end of each line compilation and does not move to next line until this error is not removed.
4
In compiler the analyzing and processing time of the program is more.
Interpreter spends less time for the program analyzing and
processing.
5
The compiler verifies syntax of program.
Interpreter verifies the keywords of a program.

No comments:

Post a Comment