Thursday, 2 January 2014

Differences between compiler and interpreter

The main differences between compiler and interpreter are listed below:
1        The interpreter takes one statement then translates it and executes it and then takes another statement. While the compiler translates the entire program in one go and then executes it.
2        Compiler generates the error report after the translation of the entire page while an interpreter will stop the translation after it gets the first error.
3         Compiler takes a larger amount of time in analyzing and processing the high level language code comparatively interpreter takes lesser time in the same process.
4         Besides the processing and analyzing time the overall execution time of a code is faster for compiler relative to the interpreter.