Searching...
Wednesday 11 April 2018

Differentiate Compiler and Interpreter

What is the Difference Between in Compiler and Interpreter ?



Compiler  takes entire program as

Input

Interpreter take single instruction input

Intermediate object code is generated

No intermediated object code is genterted

Conditional control statements are
Executes faster

Conditional control statements are executes slower

Memory requirement more(since)Object code generated

Memory requirements is less

Program need not be compiled every time

Every time higher level program is converted
Into lower level program

Errors are displayed after entire program
Is checked.

Errors are displayed for every instruction interpreted.

Example (compiler use c language 

Example interpreter use Basic language























This is the common difference between to compiler and interpreter translator its the translator to 
translate the Programming language convert into machine code.the purpose of the translator to understand the user language to covert the machine/computer lanuage that to easily understand 
what the user instruct the program.
process of the translator.


How to translate the programming code compiler  into machine code?

in simple word to say that user input the instruction into terminator like 
C language to use Editor Turbo C.so first user enter the instruction the 
compiler after program translate to the convert code into machine code 
and there is no error so program is run after the compiler find errors 
its not to be compiled the program.



compiler error displayed after entire program is checked 

Find Errors 
not Compile program
Find Erros



Compile Program

compiler not find errors to jumped the program is to compiled 

Run Program

Whereas Interpreter translate is the 

Errors are displayed for every instruction interpreted.


Every time higher level program is converted
Into lower level program


Memory Requirement is less

conditional  control statement are executes slower.







0 komentar:

Post a Comment