8000 GitHub - chin-may/compilers-lab: MIPS compiler for MiniJava · GitHub
[go: up one dir, main page]

Skip to content

About

MIPS compiler for MiniJava

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

76 Commits

Folders and files

< 99C1 td class="react-directory-row-name-cell-small-screen" colSpan="2">
NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compilers-lab

A compiler for the MiniJava language. Can also expand macros.

Written for the CS3310 course at IIT Madras.
Assignment questions are from:
www.cs.ucla.edu/~palsberg/course/cs132/project.html
www.cse.iitm.ac.in/~krishna/cs3300/cs3310.html

Each folder has a program that takes input and produces the next stage in the compilation. All input output uses standard input output.
To produce MIPS assembly code from macrotest.java :

java javacc/javacc/Main < macrotest.java (For typechecking the code)

macrojava/macrojava < macrotest.java > test.java

java miniir/Simplify < test.java > test.miniir

java microir/Simplify2 < test.miniir > test.microir

java minira/RegAlloc < test.microir > test.minira

java mips/Codegen < test.minira > test.s

About

MIPS compiler for MiniJava

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0