Yet another compiler...
Haskell C Python Scheme
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Backend
Frontend
SampleIR
SampleScm
Util
.gitignore
IRToAsm.hs
Makefile
NOTES.rst
README.rst
ScmToIR.hs

README.rst

Yet Another Compiler

  • Written in Haskell
  • For learning compiler backend stuffs (insn sel, reg alloc etc..).
  • Mobai lunba

Usage

  • Compile

make

  • See assembly result

echo "(define main (lambda (argc argv) 0))" | ./bin/IRToAsm

  • Compile and run assembly

./SampleProg/cc.py ./SampleProg/test-oop.ss -r