Showing posts with label interpreter. Show all posts
Showing posts with label interpreter. Show all posts

Sunday, 4 January 2015

Difference between Compiler and Interpreter



Parameter
Compiler
Interpreter
Description
It is a translating program that translates instructions of a high level language into machine language.
It is also a translating program to convert high level instructions into machine language.
Translation
Whole source program is translated into object program, whole resulting code (Object Code) is executed.
Translation is done line by line; one instruction is translated and then executed. This process is performed for each and every line of the program.
Execution
Whole program is executed and errors are displayed at the end.
Next instruction is not executed until errors are not removed from previous line.
Speed
Translation is fast.
Slow, because each statement must be translated every time it is executed from source program.