-
Notifications
You must be signed in to change notification settings - Fork 414
/
Copy pathusage.txt
93 lines (65 loc) · 3.99 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
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
Usage: red [command] [options] [file]
[file]: any Red or Red/System source file.
* The -c, -r and -u options are mutually exclusive.
[options]:
-c, --compile : Generate an executable in the working
folder, using libRedRT. (development mode)
-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.
-e, --encap : Compile in encap mode, so code is interpreted
at runtime. Avoids compiler issues. Required
for some dynamic code.
-h, --help : Output this help text.
-o <file>, --output <file> : Specify a non-default [path/][name] for
the generated binary file.
-r, --release : Compile in release mode, linking everything
together (default: development mode).
-s, --show-expanded : Output result of Red source code expansion by
the preprocessor.
-t <ID>, --target <ID> : Cross-compile to a different platform
target than the current one (see targets
table below).
-u, --update-libRedRT : Rebuild libRedRT and compile the input script
(only for Red scripts with R/S code).
-v <level>, --verbose <level> : Set compilation verbosity level, 1-3 for
Red, 4-11 for Red/System.
-V, --version : Output Red's executable version in x.y.z
format.
--config [...] : Provides compilation settings as a block
of `name: value` pairs.
--no-compress : Omit Redbin format compression.
--no-runtime : Do not include runtime during Red/System
source compilation.
--no-view : Do not include VIEW module in the CLI console
and the libRedRT.
--view <engine> : Select the VIEW engine (native, terminal, GTK, test)
--red-only : Stop just after Red-level compilation.
Use higher verbose level to see compiler
output. (internal debugging purpose)
--show-func-map : Output an address/name map of Red/System
functions, for debugging purposes.
[command]:
build libRed [stdcall] : Builds libRed library and unpacks the
libRed/ folder locally.
clear [<path>] : Delete all temporary files from current
or target <path> folder.
Cross-compilation targets:
MSDOS : Windows, x86, console (+ GUI) applications
Windows : Windows, x86, GUI applications
WindowsXP : Windows, x86, GUI applications, no touch API
Linux : GNU/Linux, x86, console (+ GUI) applications
Linux-GTK : GNU/Linux, x86, GUI only applications
Linux-musl : GNU/Linux, x86, musl libc
Linux-ARM : GNU/Linux, ARMv5, armel (soft-float)
RPi : GNU/Linux, ARMv7, armhf (hard-float)
RPi-GTK : GNU/Linux, ARMv7, armhf (hard-float), GUI only applications
Pico : GNU/Linux, ARMv7, armhf (hard-float), uClibc
Darwin : macOS Intel, console or GUI applications
macOS : macOS Intel, GUI-only, applications bundles
Syllable : Syllable OS, x86
FreeBSD : FreeBSD, x86
NetBSD : NetBSD, x86
Android : Android, ARMv5
Android-x86 : Android, x86