top of page

Compiler vs Interpreter


Compiler vs Interpreter


The differences between compiler and interpreter.

Compiler Interpreter

​It translates the entire program to machine code at once.

It translates single instruction of a program at a time.

It requires more translation time.

It requires less translation time.

Program execution is faster than interpreted languages.

Program execution is slower than compiled languages.

It usually generates additional intermediate code.

It doesn’t generate additional intermediate code.

It requires more memory as it generates extra object code.

It requires less memory as it does not generate any intermediate code.

Errors are displayed at the end of the compilation process.

Errors are displayed as they met.

Executable code needs to be deployed.

Source code needs to be deployed.

Example of compiled languages – C, C++, Java etc.

Example of interpreted languages – Ruby, Python, Shell script etc.











 
 
 

Recent Posts

See All

Comments


bottom of page