Compiler | Interpreter |
Convert all the code into binary format and execute. | Convert one statement at a time and execute, then Convert next statement and execute. |
After conversion, source code is not required. Binary is enough to execute the program. | As it is converting statement by statement, Always source code is required in order execute the program again and again. |
Once created binary file, execution will be fast. | As it is converting statement to binary every time, execution will be slow. |
Need to recompile if there is a modification in single statement also. In case of huge lines of code, testing the code will take more time, as we need to recompile and execute. Recompiling will take more time. | Modification can be done quickly and execute that particular statement immediately after modification. |
It required less memory. | It required more memory. |
Example : C, C++ | Example : Perl, VB, VBA |