Programming Language

Difference Between A Compiled And Interpreted Language

Before we begin, it is right for us to know what the two terms mean.

So what is compilation?

In a compiled usage of a language, a compiler will make an interpretation of the program straightforwardly into code that is particular to the target machine, which is otherwise called machine code which is code that is essentially particular to a given processor and operating system. Then the PC will run the machine code all alone.

Then what does interpretation mean?

In an interpreted usage of a language, the source code is not straightforwardly run by the target machine. What happens rather is that another program peruses and afterward executes the first source code. This other program is otherwise called the translator. The interpreter is typically written particularly for the local machine. In interpretation, the first source code is additionally ordinarily changed over into some intermediate code which is then handled by an interpreter that changes over the transitional code into machine specific code.

The major difference between the two

In a compiled usage, the first program is deciphered into local machine instructions, which are executed straightforwardly by the machine’s hardware.


In an interpreted execution, the first program is deciphered into something else. Another program, called “the translator”, then inspects “something else” and performs whatever activities are called for. Contingent upon the language and its execution, there are an assortment of types of “something else”.

Leave a Reply