Skip to content

Deependra-Patel/lab_compilers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

C like language compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published