Compare compilers, interpreters and assemblers.

Compare compilers, interpreters and assemblers.

 

Ans.

S. No. Compiler Interpreter Assembler

 

(i)

 

 

(ii)

 

 

 

 

 

 

 

 

(iii)

 

(iv)

 

 

 

 

A compiler translates a high-level language program into its equivalent machine language program.

 

The compiler translates each high-level language instruction into a set of machine language instructions, rather than a single machine language instruction. Hence there is a one-to-many correspondence between the high-level language instructions of a source program, and the machine language instructions of its equivalent object program.

 

It is a system software.

 

During the translation of a source program into its equivalent object program by the compiler, the source program is not being executed but it is only a form, which can be executed by the computer’s processor.

 

A interpreter translates a high-level language program into its equivalent machine language program.

 

 

It takes one statement of a high-level language program, translates it into machine language instructions and immediately executed it.

 

 

 

 

 

 

 

 

It is a system software.

 

During the translation by an interpreter, its output is the result of program execution instead of an object program.

 

An assembler translates an assembly language program into its equivalent machine language program.

 

An assembler translates each assembly language instruction into an equivalent machine language instruction. Hence there is a one-to-one correspondence between the assembly language instructions of a source program and the machine language instructions of its equivalent object program.

It is a system software.

 

During the translation of a source program into its equivalent object program by the assembly, the source program is not being executed but it is only being converted into a form, which can be executed by the computer’s processor.

 

Share this post