forked from discus-lang/ddc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHACKING
34 lines (21 loc) · 1.02 KB
/
HACKING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
For complete building, installation and hacking instructions check out:
Disciplined Disciple Compiler Developers Wiki
http://disciple.ouroborus.net
Quick Start Guide
~~~~~~~~~~~~~~~~~
1) Install the required dependencies from Cabal.
$ cabal install `make show-pkgs`
2) Build everything.
$ make
3) Build just the new (non-alpha) compiler, and run its regression tests.
$ make war
4) Build everything and run all regresssion tests in all ways.
$ make totalwar
5) Build a single test program and run it.
$ bin/ddc test/ddc-main/20-CoreLite/99-Defib/03-Reverse/Main.dcl
$ test/ddc-main/20-CoreLite/99-Defib/03-Reverse/Main
NOTE: You need to run tests from the top-level directory so that
DDC can find its runtime system .so under code/
6) Build that same program with optimisations and dump intermediate code.
$ bin/ddc test/ddc-main/20-CoreLite/99-Defib/03-Reverse/Main.dcl -O -dump
Now look at the .dump files in test/ddc-main/20-CoreLite/99-Defib/03-Reverse/