Presentation is loading. Please wait.

Presentation is loading. Please wait.

Md. Zahurul Islam Center for Research on Bangla Language Processing (CRBLP) BRAC University.

Similar presentations


Presentation on theme: "Md. Zahurul Islam Center for Research on Bangla Language Processing (CRBLP) BRAC University."— Presentation transcript:

1 Md. Zahurul Islam Center for Research on Bangla Language Processing (CRBLP) BRAC University

2  Project Details  What to do?  New classes  Changes on previous program  Lvalue and Rvalue  MIPS

3  Code Generator ◦ Intel Architecture (X86) ◦ MIPS Architecture ◦ Java Virtual Machine (JVM) ◦ Common Language runtime (CLR)  Our Target: MIPS Architecture  SPIM Simulator

4  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  Codegen.java ◦ Utility class for code generation  MIPSVisitor.java ◦ New visitor class to generate MIPS assembly code

6  Symbol class changes ◦ getOffset() ◦ setOffset() ◦ symOffset  FunDeclAst changes ◦ FuncFrameSize ◦ setFrameSize() ◦ getFrameSize()  NameVisitor changes ◦ cuFrameOffset ◦ …

7  Load (default)  Store  Manage it carefully

8  Prolog  Epilog  Variables  Parameter  Arguments  Return value

9  Stack ◦ Push ◦ pop  Registers ◦ Arguments ◦ Frame pointer ◦ Stack pointer ◦ Return address ◦ Return value

10  Project Details  What to Do?  New classes  Changes on previous program  Lvalue and Rvalue  MIPS


Download ppt "Md. Zahurul Islam Center for Research on Bangla Language Processing (CRBLP) BRAC University."

Similar presentations


Ads by Google