CS 340400 Compiler Design Term Project
See hw1/HW1.pdf
$ cd hw1
$ make
$ make sample # to run sample_testcase
See hw2/HW2.pdf
Implement a subset of C grammar in YACC
$ cd hw2
$ make
$ make run
See hw3/HW3.pdf
Extend HW2 and must be run in RISCV-64 simulator
There are 5 checkpoints, chkpt5_demo is ready to run.
chekpt1-4 directories contain different version of code from bottom-up code generation to top-down code generation (Syntax tree node structure).
$ cd hw3
$ cd chkpt5_demo
$ make
$ make basic # to test chkpt1
$ make arith # to test chkpt2
$ make Pointer # to test chkpt3
$ make Jump # to test chkpt4
$ make Function # to test chkpt5