GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pumpkini/compiler: Decaf to mips compiler using python

BranchesTags
Open more actions menu

Latest commit

 

History

367 Commits
367 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
tests-failed
tests-failed
 
 
tests-old
tests-old
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
comp.py
comp.py
 
 
decafOverview.pdf
decafOverview.pdf
 
 
failed-tests
failed-tests
 
 
requirements.txt
requirements.txt
 
 
run.sh
run.sh
 
 

Repository files navigation

Decaf Compiler

CE414 Compiler course project
Sharif University of Technology
Fall 1399/2020


This is a Decaf compiler in python that compiles decaf code to mips.

Decaf documention can be found in project root.

CAUTION! This is not complete decaf compiler but support most of language features.

Usage

Install requirements from requirements.txt.

Install spim.

Run all tests

Run run.sh to run all tests. You can change test directory in run.sh file.

Compile one program

Put your decaf file in ./tmp/in.d and run ./src/cgen.py. This will create a res.mips file in ./tmp. You can run mips file with spim using following command:

spim -a -f res.mips < input.txt > output.txt

About

Decaf to mips compiler using python

Topics

compilerdecafmipspythonspim

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.