-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathREADME
146 lines (95 loc) · 4.37 KB
/
README
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[ this is -*-Text-*- ]
Complete documentation is given in info file.
This is librep, a Lisp system for UNIX, needed by Sawfish window
manager. It contains a Lisp interpreter, byte-code compiler and
virtual machine. Applications may use the Lisp interpreter as an
extension language, or it may be used for stand-alone scripts.
The Lisp dialect was originally inspired by Emacs Lisp, but with the
worst features removed. It also borrows many ideas from Scheme.
It is known to compile on at least Solaris/sparc and Linux, x86 and
x86-64.
It is released under the terms of the GNU GPL,
copyright John Harper <jsh@pixelslut.com>
Maintainer until Aug 2008: John Harper
Maintainer since Aug 2008: Christopher Bratusek
For more details see:
http://sawfish.wikia.com/
To compile this you'll need GNU make, and GNU dbm
installed. Basically, just do:
$ ./configure
$ make
$ make install
Notes
=====
64-bit systems
--------------
Basically support of 64-bit systems works, but if not, read this:
You may want to look at the `--with-value-type' configure option. This
is an implicitly signed integer type (i.e. `int', `long', etc) that is
wide enough to store an arbitrary pointer without losing any bits.
It should be detected automatically by the configure script, but if not
there are two most likely required settings:
1. For a machine with 64-bit pointers and longs, but only 32-bit ints
the following could be done:
$ ./configure --with-value-type=long
2. For a machine with both int and long 32-bits, but with 64-bit
pointers and long long ints, then:
$ ./configure --with-value-type="long long"
If this option is set incorrectly (i.e. to an integer type that is too
small) a run-time assertion will be triggered when the interpreter
initialises itself.
Also, if this option is set to anything but int, long, or long long,
then the src/rep_config.h file will need to be edited for the constant
suffix and printf conversion of the chosen type.
libgmp
------
rep optionally uses GNU MP for its bignum/rational implementation;
you can find it at any GNU mirror. GMP versions 2 and 3 are both known
to work (though version 3 is recommended)
shared libraries
----------------
rep includes plugins providing language bindings for several libraries.
Because these plugins are implemented as shared objects that are loaded
at runtime, the libraries they wrap must also be shared libraries on
most systems. This means that the installed libgdm must be shared, and
if compiling with readline support, so must libreadline
cut-down version
----------------
The configure script accepts the following options to build restricted
versions of librep. The resulting library is binary-compatible with the
normal version.
--without-gmp
Don't use GNU MP for bignums. Use `long long' as biggest integer
type (if available, else just `long'). Also, there is no support
for exact rationals, thus (/ 1 2) => 0.5 not 1/2
--disable-continuations
Don't include support for call/cc or multi-threading. This may be
useful for machines with non-linear stacks (old crays?)
obscure configure options
-------------------------
--enable-dballoc
Trace all memory allocations. Not for general use
--disable-dbsyms
When printing C stack backtraces, don't try to output symbolic
addresses
--enable-gprof
Compile with flags enabling profiling. Also needs --enable-static
to be given. Use the `srep' target in the src directory to build a
statically linked interpreter (since gprof doesn't profile shared
libraries)
--with-malloc-alignment=BYTES
The minimum alignment of memory returned from malloc (). Defaults
to the machine's word size. It's unlikely this will ever need to be
specified explicitly
--with-stack-direction=DIRECTION
Direction of stack growth. -1 for downwards (grows from higher
addresses to lower addresses), +1 for upwards. If not given, will
try to infer this automatically (though it has been known to fail)
--enable-full-name-terminator=CHARACTER
If the GECOS fields in your password file contain extra information
after the user's full name, this option allows the separator
character to be given, letting rep's user-full-name function return
the correct information.
E.g. some systems have GECOS as a comma-separated list of values,
the first of which is the full name. For this case:
--enable-full-name-terminator=,