Language Translator

The computer translator these instructions into the machine language with the help of language translator.

Assembler: An assembler transfers the symbolic codes of programs of an assembly language into machine language instructions. The symbolic language is translated to the machine code in the ratio of one is to one symbolic instruction to one machine code instructions.

Compiler: Complier are the translators which translate all the instruction of the program into machine codes which be used again and again. The program which is to be translated is called the sources program and after translation the object code is generated.

Interpreter: Interpreter reads the program line by line.

Differences between compiler and interpreter:

Compiler

Interpreter

Compiler takes entire program as output.

Interpreter takes single instruction as input.

Intermediate object code is generated.

No intermediate object code is generated.

Conditional control statement is executing fasters.

Conditional control statement are executes slower.

Memory requirement is more (since object code is generated).

Memory requirement 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. (IF ANY)

Example: C Compiler

Example: Basic

Comments

Popular posts from this blog

What is Website

Forage Solutions