Skip to content

joelmathew003/tiger-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiger Compiler

Directories

reverse-polish/ -> contains reverse-polish lab files
src/ -> contains source language compiler files including Parser, Lexer, AST, Graph Structure, IR
target/ -> contains files of MIPS, Temp Structure, Translate and Basic Block Structure. \

Usage

Build the programs using the following make command

make

Save the test input of the form of the tiger subset language into a file say test.inp. Run it using the command and store the output in a file say test.out or run make test to do the same

./ec test.inp > test.out

test.out now contains the MIPS code and the basic blocks. To test working of the MIPS code using SPIM, read and run the file containing the MIPS code.

spim
read "filename"
run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published