Slideshow

Monday 25 February 2013


DIFFERENCE BETWEEN COMPILER AND INTERPRETER

A compiler converts the source program (user-written program) into an object code
(machine language by checking the entire program before execution. If the program
is error free, object program is created and loaded into memory for execution. A
compiler produces an error list of the program in one go and all have to be taken
care even before the execution of first statement begin. It takes less time for
execution.
An interpreter is also a language translator that translates and executes statements
in the program one by one. It work on one statement at a time and if error free,
executes the instruction before going to second instruction. Debugging is simpler in
interpreter as it is done in stages. An interpreter takes more time for execution of a
program as compared to a compiler.

No comments:

Post a Comment