Giter Site home page Giter Site logo

bthuilot / tigersml Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 325 KB

Implemenation of the Tiger compiler in SML as described by Andrew Appel's 'Modern Compiler Implementation in ML'

License: GNU General Public License v3.0

Makefile 0.01% Standard ML 96.50% C 0.46% Assembly 0.82% Lex 2.20%

tigersml's Introduction

TigerSML

A Tiger compiler written in Standard ML from Andrew Appel's 'Modern Compiler Implementation in ML'

Written By Bryce Thuilot & Khalil Haji

Running

To run the compiler simply give the name of the .tig as an argument while running run.sml with the sml command (optionally add -o [OUTPUT FILE] where [OUTPUT FILE] is the name of the output file to write to, otherwise a.out will be used)

i.e. to the compile the file factorial.tig

sml run.sml factorial.tig -o factorial.s

Directory Structure

Each directory will contain the additional files that were added for each project throughout the semester, in addition to a README.md file describing the changes we made for that project

  • lex: Code for lexing

  • parse: Code for parsing

  • semantics: Code for static semantics

  • frame: Code for frame analysis

  • ir: Code for IR generation

  • inst_select: Code for instruction selection

  • liveness: Code for liveness analysis

  • register: Code for register selection

  • integration: Code provided to assist in linking runtime and translation to machine code

  • util: Utility files used across multiple projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.