Mention two differences between compiler and interpreter.



Subject Introduction to Computer System
NU Year Set: 2.(e) Marks: 2 Year: 2012

Interpreter

Compiler

Translates program one statement at a time.

Scans the entire program and translates it as a whole into machine code.

It takes less amount of time to analyze the source code but the overall execution time is slower.

It takes large amount of time to analyze the source code but the overall execution time is comparatively faster.

Login to post your comment.