Articles

Difference between compiler and interpreter

Difference between compiler and interpreter

In this tutorial, we are going to study and learn about the major differences between compilers and interpreters.

 

Compiler vs Interpreter

Compiler

Interpreter

Compiler is a system program that is used to convert the program in high level language into its equivalent target code in low level language all at once.

Interpreter is a program that can analyse and execute any program line by line. 

Compiler converts all the instruction (whole program) at once.

Interpreter doesn’t convert whole program at once. Rather it translate and executes each instruction from the program line by line.

Compilers are more efficient and faster than interpreter in terms of execution.

Interpreters are less efficient and slower in terms of execution as it executes each instruction one by one.

Compilers uses large memory spaces compared to interpreters

Interpreters uses small memory spaces as compared to compilers.

Compiler Examples: C, C++, FORTRAN, PASCAL, Java Interpreter Examples: BASIC, PERL

 

The above pointers cover the major differences between the compiler and interpreters.

 

 


Would you like to see your article here on tutorialsinhand. Join Write4Us program by tutorialsinhand.com
Page Views : 546    Published Date :Mar 05,2019   Author :rajneesh
Please Share this page

Popular Articles

Loading...
Like every other website we use cookies. By using our site you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Learn moreGot it!