Presentation is loading. Please wait.

Presentation is loading. Please wait.

Intermediate-Code Generation Jin Tianxing 5110309085.

Similar presentations


Presentation on theme: "Intermediate-Code Generation Jin Tianxing 5110309085."— Presentation transcript:

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


Download ppt "Intermediate-Code Generation Jin Tianxing 5110309085."

Similar presentations


Ads by Google