Compiler,Interpreter and Assembler

Compiler


It is a program which translates a high level language program into machine language program.Compiler is more intelligent than and assembler it checks all kinds of limits Rangers error etc,. but it's program run time is more and occupies a large part of the memory. It has low speed because a compiler goes through  the entire program and then translate the entire program into machine code for . If compiler runs on a computer and produce the machine codes for the same computer then it it is known as a self compiler and resident compiler.On the other hand if a compiler runs a computer and produces the machine code for other computer than is known as a cross compiler.


Interpreter

   
                                 
An interpreter is a program which you translate statements of a program into machine code it translate only one statement of the program at a time it reads only one statement of program translate it and executes it then it reads the next statement of the computer program again translate it and execute it in this way it proceeds further till all the statements are translated and executed on the other hand a compiler goes through the entire program and the translate the entire program into machine code.It occupies less memory space so it can be used in a smaller system which has Limited memory space


Assembler








A Computer will not understand any program written in language, other than its machine language. The programs written in other languages must be translated into the machine language. Such translation is performed with the help of software. A program which translates an assembly language program into machine language program is called assembler. If an assembler which runs on a computer and produce the machine codes for the same computer than it is called self assembler or residence assembler. If an assembler that runs on a computer and produce the machine codes for other computer then it called cross assembler.










No comments:

Post a Comment