πŸ“šInterpreter vs Compiler

Describe about interpreter and compiler

Definitely when developer want to develop new software, they will develop it via some programming language (also known as high level langauge) but computer can't understand it so we required something for interpretion. Intepreter and Compiler will solve this problem. They will interpret from source code to machine code and computer will use this machine code to process further. The difference between interpreter and compiler is interpreter will process line by line and when an error occur it will stop but compiler will process until finish and notice that error occur.

Advantage of Interpreter

  • Time for analysis source code is faster than compiler

  • When running in new software architecture we don't need to compile again

Advantage of Compiler

  • Time for execution is less than interpreter

Disadvantage of Compiler

  • When error occur at compile time , we need to fix source code and recompile

Used Compiler

  • Java ( also used interpreter)

  • C

  • C++

Used Interpreter

  • Python

  • Javascript

  • PHP

  • Ruby

Last updated