Monday, 2 January 2017

Difference between interpreter and compiler Difference between interpreter and compiler
Compiler Interpreter
1.It translates the entire program. 1.It translates the program line by line or statement by statement.
2.It requires more main memory. 2.It requires less main memory.
3.It converts the entire program into machine-code,when all the syntax errors are removed and executes the object code directly. 3.Each time the program is executed ,every line /statement is checked for syntax error and then translated to equivalent machine code.
4.Neither source nor the compiler is required for execution (execute direct object code). 4.Source program and the interpreter is required for execution.
5.It is slow for debugging and testing stage. 5.It is good for fast debugging and at testing stage.
6.Its execution time is less. 6.Its execution time is more.

No comments:

Post a Comment