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.

 

 


Computers

Would you like to see your article here on tutorialsinhand. Join Write4Us program by tutorialsinhand.com

About the Author
Sonu Pandit
Technology geek, loves to write and share knowledge with the world. Having 10+ years of IT experience. B.Tech in Computer Science & Engineering
Page Views :    Published Date : Jul 05,2020  
Please Share this page

Related Articles

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 more Got it!