Tuesday, 23 April 2019

What is difference between compiler and interpreter?

Or, Difference between compiler and interpreter
Or, Understanding the differences between compiler and interpreter
Or, Definition of compiler and interpreter

Compiler: Compiler is a program that translates or converts the codes written in high-level programming language into low-level machine language. It takes the entire program a time and executes the program faster than interpreters.

It is used largely for C, C++, and Scala etc…

Interpreter: The interpreter is an alternative and does the same works as compilers.  It takes single line code or instruction at a time and execute the program little slower compared to compilers.

It is used largely in Python, Php, and Perl etc…

Cheers, Please write me back if you have any query or feedback on this.