Download presentation
Presentation is loading. Please wait.
Published byKaren Jefferson Modified over 9 years ago
1
Intermediate-Code Generation Jin Tianxing 5110309085
2
Purpose Theoretically, we can directly generate the MIPS assemble code after semantic analysis. Intermediate-code give us opportunities to register allocation, code optimization and easiness when debugging. After this, the input code and AST can be thrown away.
3
Where is the data?
4
Quadruple
5
Example in the Dragon Book
6
Oprands
7
Expression
8
Memory Access
9
Jump Statement
10
Examples
11
Example for jump stmt
12
Function Call
13
Register Use
14
What to do when calling a function?
15
Stack Frame
16
Single Static Assignment
17
Example
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.