Compiler | Interpreter |
Compiler is used to translate between human and computer (i.e. Source code to Machine code) | Interpreter is also used to translate between human and computer(i.e. Source code to Machine code) |
Compiler scans the entire program and translates the entire program to Machine code. | Interpreter translates the program into line by line. |
Compiler takes entire program as Input. | Interpreter takes single line as Input. |
Compiler creates the object code file. | Interpreter doesn't creates the object code file. |
Compiler is slow for debugging (removal of mistakes from a program) | Interpreter good for fast debugging. |
It takes less execution time. | It takes more execution time. |
Example: C, C++ and Java. | Example: Perl, Python and Matlab. |
***********************************************************************************
0 Comments