Tuesday, April 24, 2018
Components of Compiler
Components of Compiler

1. Analysis: In this part source program is broken into constituent pieces and creates an intermediate representation of the source program. It includes following important phases.
a. Lexical analysis
b. Syntax analysis
c. Semantic analysis
2. Synthesis: in this part construction of the desired target program from intermediate representation is done. It includes following important phases.
a. Intermediate code generation
b. Code optimization
c. Storage allocation
d. Code generation
These phases will be discussed in more detail in next posts.
![]() |
Different phases of Compiler |
1. Earlier compilers were divided into many passes to save SPACE. When each pass is finished, the compiler can free the space.
2. Modern compiler user �TWO STAGE� design:
a. First stage:
i. front end: source language Intermediate representation
b. Second stage:
i. Back end : intermediate representation�output language
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.