Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiger to MIPS compiler written in SML.

STEPS

LEXING -> PARSING -> SEMANTIC ANALYSIS -> INSTRUCTION SELECTION -> LIVENESS ANALYSIS -> REGISTER ALLOCATION -> ASSEMBLY/LINKAGE -> MIPS ASSEMBLY

TIGER LANGUAGE DOCUMENTATION

http://www.cs.columbia.edu/~sedwards/classes/2002/w4115/tiger.pdf

USAGE

From the SML REPL, enter the directory containing the compile.

OS.FileSys.chDir(compilerPath/)
CM.make "sources.cm";
Main.compile "/path/test.tig";

Produces an MIPS assembly file in the same directory as the target file that can be compiled using a MIPS simulator.

FUTURE

Might attempt implement garbage collection, support for OOP.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages