Professional Documents
Culture Documents
Compiler Design
(CoSc4072)
Introduction
• So, you just write the program and you invoke the
interpreter on the data and the program immediately begins
running.
• The last three phases of a compiler, which are ICG, code optimization
and code generation are together known as synthesis phase.
• Gathers type information and saves it in either the syntax tree or the
symbol table, for subsequent use during ICG.
• Example:
• Example:
• Example:
• Parse trees: A parse tree is a tree-like data structure that represents the
grammatical structure of a program.