DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Difference Between Interpreter, Compiler, interpreted language and compiler language
Elliot Brenya sarfo
Elliot Brenya sarfo

Posted on

Difference Between Interpreter, Compiler, interpreted language and compiler language

An interpreter translates high-level programming statements into Assembly Level Language. Before moving on to the next line, a language processor translates the source program statement line by line before execution.

If the statement contains an error, the interpreter will stop translating and display the error warning. The interpreter does not proceed to the next line for execution until the mistake has been cleared.

Instead of converting instructions written in a programming or scripting language to object code or machine code, an interpreter just executes them. Perl, Python, and MATLAB are three examples.

Compiler Is a set of programs that translate a high-level programming language as a whole into its equivalent machine language. A compiler successfully converts source code to object code if it is error-free.

When there are any errors in the source code, the compiler reports them at the end of the compilation with line numbers. The errors must be removed before the compiler can successfully recompile the source code. Some examples are C, C++, C#, and Java.

An interpreted language is a kind of programming language that relies on another piece of software called an interpreter to run.

When writing programs using an interpreted language, the program itself is a text file with code, and the interpreter acts as an intermediary, translating the instructions into something the machine can understand.

Interpreted languages have several limitations in terms of performance, but they’re also easier to work with and ideal for certain kinds of applications. Examples of common interpreted languages are PHP, Ruby, Python, and JavaScript.

A compiled language is a computer programming language whose source code is typically assemble, or translated into machine code, to produce an executable program. Compiler languages uses a piece of program called compiler.

Compilers are utility programs made to translate a specific implementation of a programming language into an executable binary file that is designed to run under a certain operating system.

This stand-alone executable file can be run on any compatible platform without assistance from another program and without the need to be recompiled. Some common compiled languages are Ada, C++ and Fortran.

Visit https://www.anythingprogramming.com/?m=1 for more content like these

Top comments (0)

πŸ‘‹ Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: