compiler Vs Interpiter
General, Technology

Difference between Compiler and Interpreter

0 412
Fixing Broken Android Download or Bluetooth Sharing Hangs
How to activate call waiting in Android devices

The program that we write on a computer system is called a source code and the computer system can’t directly understand our program as it can only understand the object code in 0 and 1 format. For this we need translators to convert our source code into object code for successful execution. in this article I will focus on two types of translators, i.e, Compiler and Interpreter used in high level programming languages.

Compiler:

Compiler is a translator that reads the entire program and converts it to source code for successful execution. The compiler also give us the errors and warning if any before the program execution. The source code acts as an input to the compiler and the object code is the output of the compiler.

But the process of compilation takes some time as we need to correct all the errors it gives before program execution. It can also link intermediate classes and subroutines to the source program and act as a linker. Most of the high level languages such as C, C++, JAVA, etc. uses compiler.

Interpreter:

Interpreter is also a translator and converts the source code into object code but in a different way than the compiler. The interpreters reads the source code line by line and executes the program directly. The object code is also created line by line.

The interpreters are fast as compered to compilers as they don’t go for error checking at a whole and the error is checked at the run-time. Very high level languages such as C#, F#, etc are interpreter oriented.

You can differentiate between compiler and interpreter as follows,

Compiler

Interpreter

  1. Translate the source code into object code
  2. Reads the entire source code or program
  3. After the entire source code is read the compiler produces the object code
  4. It executes the program at last after the entire source code is read
  5. Provides a list of errors and warnings before execution
  6. Program execution is slower in compiler
  7. High level languages such as C, C++, JAVA, etc. are compiler employed
  1.  Translate the source code into object code but in a different way
  2. Reads the source code or program line by line
  3. Object code is created line by line by the interpreter
  4. Executes the program instantly line by line
  5. Provides errors and warning at the time of execution
  6. Program execution is faster in an interpreter
  7. Very high level languages such as VB.NET, C#, F#, etc. are interpreter employed

 

About the author / 

Abhisek Panda

Abhisek Panda is the co-founder of PractoMind Solutions and Dresm House Publications and is a Marketing and Media professional, Blogger, Social Media Specialist and Web Developer from Cuttack, Odisha. He has completed his PGDM (Marketing) from Institute of Management and Information Science, BBSR and Bachelors degree in Information Technology and Management (ITM) from Ravenshaw University, Cuttack. Abhisek has more than 3 years of experience in the field of technology, commercial operations, sales and marketing. He has also worked for more than 1 year as an Webmaster for www.Techulator.com and an editor and tutorial author at www.DotNetSpider.com. You can find out more about him at his blog abhisekpanda.com

Related Posts

Express your views

Posts By Popularity

Subscribe to RSS Feeds

Just Put your email here and subscribe to our RSS feed or directly subscribe to the website by entering your email at top.