Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xldenis/mgc

comp 520 go compiler
https://github.com/xldenis/mgc

compiler haskell

Last synced: about 19 hours ago
JSON representation

comp 520 go compiler

Awesome Lists containing this project

README

        

Student ID: 260521681

Xavier Denis

THIS WILL NOT BUILD ON MCGILL SERVERS. THERE IS A DEPENDENCY ON LLVM(3.4) WHICH IS NOT INSTALLED ON THE MACHINES.

To build this project run the command
cabal sandbox init
cabal install --upgrade-dependencies --constraint="template-haskell installed" --dependencies-only
cabal build

To build a file, from the main directory run:
cabal run -- file.go
gcc file.s

This will produce an executable, either the default a.out or if the -o option is specified, whatever output was desired.

Simply run the final exectuable for the desired results.

This will build the binary in `dist/mgc/mgc`