-
Notifications
You must be signed in to change notification settings - Fork 1
/
vicare.text
192 lines (150 loc) · 6.18 KB
/
vicare.text
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
Vicare Scheme, a compiler for R6RS Scheme.
Usage:
vicare [OPTIONS] [FILENAME] [-- [PROGRAM OPTS]]
vicare [OPTIONS] --r6rs-script PROGRAM [-- [PROGRAM OPTS]]
vicare [OPTIONS] --binary-program PROGRAM [-- [PROGRAM OPTS]]
vicare [OPTIONS] --compile-library LIBFILE
vicare [OPTIONS] --compile-dependencies PROGRAM
vicare [OPTIONS] --compile-program PROGRAM
vicare [OPTIONS] --compile FILE
the OPTIONS are interpreted by vicare, PROGRAM OPTS can be obtained
using the COMMAND-LINE procedure in the (rnrs programs) library.
Options controlling execution modes:
--r6rs-script PROGRAM
Start Vicare in R6RS-script mode. The PROGRAM file is handled
as an R6RS program.
--binary-program PROGRAM
Start Vicare in compiled-program mode. The PROGRAM file is
handled as a precompiled R6RS program: loaded and executed.
--compile-library LIBFILE
Load the R6RS library source LIBFILE, compile it and save the
result in the FASL repository.
--compile-dependencies PROGRAM
Load the R6RS program PROGRAM, compile all the libraries upon
which it depends and save them in the FASL repository. PROGRAM
itself is not evaluated.
--compile-program PROGRAM
Load the R6RS program PROGRAM, compile it and store it as FASL
file. PROGRAMitself is not evaluated.
--compile FILE
Load the selected file, recognise it as program or library by
the file extension (.sps or .sls), compile it and store it as
FASL file.
When none of these options is given, but a FILENAME is present on the
command line: act as if the --r6rs-script option had been used with the
given file name. If no FILENAME is present on the command line: enter
the REPL.
Other options:
-b BOOTFILE
--boot BOOTFILE
Select the boot image. The default is /usr/local/vicare/lib/vicare-scheme/vicare.boot
--no-rcfile
Disable loading of run-command files.
-o OFILE
--output OFILE
Select the pathname of the output file.
--rcfile RCFILE
Load and evaluate RCFILE as an R6RS program at startup, before
loading libraries and running the main script. This option can
be used multiple times.
-l LIBFILE
--load-library LIBFILE
Load LIBFILE expecting it to contain one or more R6RS libraries;
after executing the RC files, load the libraries in the internal
collection but do not add them to any environment. This option
can be used multiple times.
--no-greetings
Suppress greetings when entering the REPL.
-A DIRECTORY
--source-path DIRECTORY
Append DIRECTORY to the library search path. This option can be
used multiple times.
-I DIRECTORY
Prepend DIRECTORY to the library search path. This option can
be used multiple times.
-L DIRECTORY
--library-path DIRECTORY
Add DIRECTORY to the FASL search path. This option can be used
multiple times.
--build-directory DIRECTORY
Select DIRECTORY as pathname under which compiled libraries
files are temporarily stored before being installed. When used
multiple times: the last one wins.
--more-file-extensions
Rather than searching only libraries with extension
".vicare.sls" and ".sls", search also for ".vicare.ss",
".ss", ".vicare.scm", ".scm" and the "main" file.
--prompt STRING
Use STRING as prompt for the REPL. Defaults to "vicare".
--repl-on-sigint
When this option is used an interprocess signal handler is
registered at program startup to enter a debugging REPL whenever
a SIGINT signal is received.
--raw-repl
Do not create a readline console input port even if the readline
interface is available.
-d
-g
Turn on debugging mode.
--option OPTION-NAME
Turn on or off a compiler or expander option. OPTION-VALUE can
be one among:
debug no-debug
strict-r6rs no-strict-r6rs
drop-assertions no-drop-assertions
gc-integrity-checks no-gc-integrity-checks
print-loaded-libraries no-print-loaded-libraries
debug-messages no-debug-messages
enable-automatic-gc disable-automatic-gc
enable-runtime-messages disable-runtime-messages
print-assembly print-optimizer
print-optimiser
check-compiler-pass-preconditions
no-check-compiler-pass-preconditions
expander-descriptive-gensyms
expander-descriptive-marks
compiler-descriptive-labels
compiler-core-type-inference no-compiler-core-type-inference
compiler-introduce-primrefs no-compiler-introduce-primrefs
basic-letrec-pass
waddell-letrec-pass
scc-letrec-pass
-Wall
Enable all the expander and compiler warnings.
-Wlogic-constants
-Wno-logic-constants
Enable or disable raising a &warning exception when an operand
in a logic expression always returns false or non-false.
-Wnot-returning
-Wno-not-returning
Enable or disable raising a &warning exception when an operand
evaluated for its return values is typed as not returning.
--library-locator NAME
Select a library locator. NAME can be one among: run-time,
compile-time, source.
-O0
Turn off the source optimizer.
-O1
-O2
-O3
Turn on various levels of compiler optimisations.
--optimizer-passes-count COUNT
Specify how many passes to perform with the source optimizer.
Must be a positive fixnum. Defaults to 1.
-v
--verbose
Enable verbose messages.
--silent
Disable verbose messages.
-V
--version
Print version message on stderr then exit.
--version-only
Print only the version number on stdout followed by a newline
then exit.
--license
Print license message on stderr then exit.
-h
--help
Print this help message on stderr then exit.
Consult Vicare Scheme User's Guide for more details.