information about computer technology and about computer languages.

Monday, 28 December 2020

Compiler

A compiler is special program that is used to translate source code from high level language to a low level language. A programmer write programs in different languages such as C or JAVA and compiler translate it into machine language. 




A good compiler will spot errors in the source code, it must be good at error reporting. After compiling the compiler creates the executable file because executable file runs faster then a source code. The main task of compiler is to verify and check the entire program. Compilers are divided into three parts.

Single Pass Compiler : In single pass compiler source code directly translate into machine language.

Two Pass Compiler  : In two pass compiler source code divided into two parts in Front End and Back End.
Multi Pass Compiler : In multi pass compiler, the source code divided into multiple small parts and then processed. The multi pass compiler compiles the source code several times.



2 comments: