Professional Documents
Culture Documents
UNIT-4
2
SRMIST, Vadapalani Campus
Introduction
Intermediate Code
3
SRMIST, Vadapalani Campus
Overview
5
Syntax Trees
E→E+T | T
T→T*F | F
F → ( E ) | id
Syntax tree:
Input: id + id * id
7
Intermediate Languages Types
● Graphical IRs: Abstract Syntax trees, DAGs, Control Flow Graphs
● Linear IRs:
:= :=
a + a +
* * *
c c c
10
11
12
13
14
15
16