Types of Compiler
- Single Pass Compilers
- Two Pass Compilers
- Multipass Compilers
Single Pass Compiler
In single pass Compiler source code directly transforms into
machine code. For example, Pascal language.
Two Pass Compiler
Two pass Compiler is divided into two sections, viz
- Front end: It
maps legal code into Intermediate Representation (IR).
- Back end: It
maps IR onto the target machine
The Two pass compiler method also simplifies the retargeting
process. It also allows multiple front ends.
Multipass Compilers
The multipass compiler processes the source code or syntax tree
of a program several times. It divided a large program into multiple small
programs and process them. It develops multiple intermediate codes. All of
these multipass take the output of the previous phase as an input. So it
requires less memory. It is also known as 'Wide Compiler'.
No comments:
Post a Comment