Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 787 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 787 Bytes

Compiler

This was a cumulative project in which we kept adding features after each lab(1-5).
There are two versions for this due to algorithms used for registor allocation in lab5:

1. codeGen-greedy:

n = no. of registers currently available
if n>2 allocate register to left child first and evaluate it, then allocate n-1 to right child then evaluate
else if n = 2 allocate both to left child, evaluate it then store that in memory. Allocate both to right child, and get result

2. codeGen-su:

Sethi ullman is used for allocating registers.

Run

Go to respective codeGen-greedy/codeGen-su folder and see the README.txt

Compilers lab

cs304
Authors:
Deependra Patel
Anurag Shirolkar