-
Notifications
You must be signed in to change notification settings - Fork 0
/
usage.txt
47 lines (32 loc) · 2.06 KB
/
usage.txt
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
Usage: red [options] [file]
[file]: any Red or Red/System source file. Any Red or Red/System source file. If no file and no option is provided, the REPL will be launched. If a file with no option is provided, the file will be simply run by the interpreter (it is expected to be a Red script with no Red/System code).
[options]:
-c, --compile : Generate an executable in the working
folder.
-d, --debug, --debug-stabs : Compile source file in debug mode. STABS
is supported for Linux targets.
-dlib, --dynamic-lib : Generate a shared library from the source
file.
-h, --help : Output this help text.
-o <file>, --output <file> : Specify a non-default [path/][name] for
the generated binary file.
-r, --no-runtime : Do not include runtime during Red/System
source compilation.
-t <ID>, --target <ID> : Cross-compile to a different platform
target than the current one (see targets
table below).
-v <level>, --verbose <level> : Set compilation verbosity level, 1-3 for
Red, 4-11 for Red/System.
-V, --version : Output binary version string.
--red-only : Stop just after Red-level compilation.
Use higher verbose level to see compiler
output. (internal debugging purpose)
Cross-compilation targets:
MSDOS : Windows, x86, console (+ GUI) applications
Windows : Windows, x86, GUI applications
Linux : GNU/Linux, x86
Linux-ARM : GNU/Linux, ARMv5
Darwin : Mac OS X Intel, console-only applications
Syllable : Syllable OS, x86
Android : Android, ARMv5
Android-x86 : Android, x86