Getting Started¶
You need recent versions of GHC, Cabal and LLVM already installed:
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.1
$ cabal --version
cabal-install version 2.2.0.0
compiled using version 2.2.0.1 of the Cabal library
$ llc --version
LLVM version 5.0.0
...
Clone the source repository from github:
$ git clone git@github.com:discus-lang/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/Discus/10-Defib/04-Life/Main.ds
$ test/ddc-demo/source/Discus/10-Defib/04-Life/Main -steps 1000