Repository navigation
Expand file tree
/
Copy pathREADME
More file actions
73 lines (43 loc) · 1.49 KB
/
Copy pathREADME
File metadata and controls
73 lines (43 loc) · 1.49 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
=======================================
Welcome to the Timber compiler sources!
=======================================
Requirements
============
To compile the Timber compiler, you'll need
ghc (haskell.org/ghc)
gcc (gcc.gnu.org)
Furthermore, to compile the grammar (Parser.y into Parser.hs) you'll need
happy (haskell.org/happy)
To use the LLVM backend you'll need
LLVM (llvm.org/)
clang (clang.llvm.org/)
Version numbers known to work are ghc 6.10.1, happy 1.17, gcc 4.0, LLVM 2.6,
and clang 1.1.
Installing
=============
If you have the cabal-install package installed, the following works:
cabal install timberc
If you would rather do a manual installation of the compiler in the default
location (you may need root privileges for this), use the following commands:
runhaskell Setup.lhs configure
runhaskell Setup.lhs build
runhaskell Setup.lhs install
You can select another location for the installation of the compiler by
using the following commands:
runhaskell Setup.lhs configure --user --prefix=<the install path>
runhaskell Setup.lhs build
runhaskell Setup.lhs install
You can also give other options to the installation script, see
runhaskell Setup.lhs configure --help.
Running
=======
For info on how to run the compiler once installed, type
timberc --help
Reporting bugs
==============
Please use the Trac system at
http://trac.haskell.org/timber/
Further information
===================
Please visit
http://timber-lang.org