If program is interpreted the source code and interpreter are needed each time the program runs. Once the program is compiled, it can be executed over and over without the source code or compiler Takes longer to compile, but super fast executionĮrrors are notified during compilation processĮrrors are notified during interpretation processĭisadvantage: harder to debug (i.e., finding errors) Since interpreter translates line-by-line, interpreted code runs slower than compiled code.
Interpreter only looks one line of program at a time Source programs are executed one line at a time (i.e., line-by-line) No executable file (object program) is generatedĮntire source program is executed at a time
Difference between Compiler and Interpreter CompilerĬompiler translates an entire program into machine language to create an executable file Modern programming languages are: C, C++, Java etc. So, before knowing about compiler, interpreter and assembler, one needs some knowledge on programming languages. Compiler, interpreter and assembler are computer language translators.