Getting Started

You need recent versions of GHC, Cabal and LLVM already installed:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1

$ cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library

$ llc --version
LLVM version 3.6.2
...

Clone the source repository from github:

$ git clone git@github.com:DDCSF/ddc.git
$ cd ddc

Install package dependencies via cabal:

$ make setup

Build the compiler:

$ make

Run the testsuite to ensure everything is ok:

$ make war

Build and run one of the demos:

$ bin/ddc -make test/ddc-demo/source/tetra/10-Defib/04-Life/Main.ds
$ test/ddc-demo/source/tetra/10-Defib/04-Life/Main -steps 1000