what is a Compiler ?

A compiler is a piece of code that translates the high level language into machine language. The compiler scans the entire program first and then translates it into machine code which will be executed by the computer processor and the corresponding tasks will be performed.

what is a Interpreter ?

Interpreters are not much different than compilers. They also convert the high level language into machine readable binary equivalents is knows as interpreter.

Different Between Complier and Interpreter

Compiler and  Interpreter work
Compiler and Interpreter work

Compiler

  • It Scans the entire program first and translate it into machine code.
  • It show all error and warring at same time.
  • Error occurs after scanning the whole program.
  • Debugging is slow.
  • Execution time is less.
  • It is more efficient.
  • It is not flexible.
  • It is larger size.
  • The error localization is difficult.
  • It is use by language such as C, C++, etc.
  • Both syntactic and semantic errors can be check at the same time.

Interpreter

  • It scans the program link by line and translate it into machine code.
  • It show one error at a time.
  • Error occurs after scanning each line.
  • Debugging is faster.
  • Execution time is More
  • It is use by language such as java, PHP, Python etc.
  • it is less efficient.
  • It is flexible.
  • It is often smaller than Complier.
  • The error localization is easier than Complier.
  • CPU utilization is less as compare to Complier.
  • Only syntactic error can be check at a time.

To know more about Interpreter please check Wikipedia Click here

To know more about Compiler please check Wikipedia Click here


Basic Engineer

Hey Readers! We have more than fifteen years of experience in Software Development, IoT, Telecom, Banking, Finance and Embedded domain. Currently we are actively working on Data Science, ML and AI with multiple market leaders worldwide. Happy Reading. Cheers!

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *