Download presentation
Presentation is loading. Please wait.
Published byJasper Franklin Modified over 9 years ago
1
Programming Assignment 4 Code generator Md. Zahurul Islam Center for Research on Bangla Language Processing (CRBLP) BRAC University
2
Outline Project Details What to do? New classes Changes on previous program Lvalue and Rvalue MIPS
3
Project Details Code Generator Intel Architecture (X86) MIPS Architecture Java Virtual Machine (JVM) Common Language runtime (CLR) Our Target: MIPS Architecture SPIM Simulator
4
What to do? Download starter-kit Find out what you have to do Try to understand our starter-kit Take a look on our given solution Read MIPS references Online references on course website Computer architecture book Lets start!
5
New classes Codegen.java Utility class for code generation MIPSVisitor.java New visitor class to generate MIPS assembly code
6
Changes on previous program Symbol class changes getOffset() setOffset() symOffset FunDeclAst changes FuncFrameSize setFrameSize() getFrameSize() NameVisitor changes cuFrameOffset …
7
Lvalue and Rvalue Load (default) Store Manage it carefully
8
Closer look Prolog Epilog Variables Parameter Arguments Return value
9
MIPS Stack Push pop Registers Arguments Frame pointer Stack pointer Return address Return value
10
Sum Up Project Details What to Do? New classes Changes on previous program Lvalue and Rvalue MIPS
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.