| Version 1 (modified by benl, 4 years ago) |
|---|
Building
Dependencies
- A recent version of GHC.
It's been tested with at least 6.10.1 and 6.10.3
We use a few GHC specific extensions, so it's unlikely to work with other compilers.
- A recent version of GCC.
It's been tested with at least 4.0.1 and 4.1.2.
- If you want to work on the lexer you will need the Alex lexer generator
- The graphical demos depend on libxv but most Linux distros, and Mac OSX already have this.
Builing the compiler and runtime system
- Make a local copy of the build config file.
$ cp make/config.mk.sample make/config.mk
- Edit this make/config.mk file to set your target system.
Currently supported targets are linux-{x86,x86_64}, darwin-{x86,x86_64}
Targets that haven't been tested recently are freebsd-x86
- Build the compiler, runtime system and external libraries.
$ make
Building the base libraries
- Build the base libraries (with optimisations enabled)
$ bin/ddc -O -make library/Prelude.ds
