forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asc.json
202 lines (202 loc) Β· 5.92 KB
/
asc.json
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
192
193
194
195
196
197
198
199
200
201
202
{
"version": {
"description": "Prints just the compiler's version and exits.",
"type": "b",
"alias": "v"
},
"help": {
"description": "Prints this message and exits.",
"type": "b",
"alias": "h"
},
"optimize": {
"description": [
"Optimizes the module. Also has the usual shorthands:",
"",
" -O Uses defaults. Equivalent to -O2s",
" -O0 Equivalent to --optimizeLevel 0",
" -O1 Equivalent to --optimizeLevel 1",
" -O2 Equivalent to --optimizeLevel 2",
" -O3 Equivalent to --optimizeLevel 3",
" -Oz Equivalent to -O but with --shrinkLevel 2",
" -O3s Equivalent to -O3 with --shrinkLevel 1 etc.",
""
],
"type": "b",
"alias": "O"
},
"optimizeLevel": {
"description": "How much to focus on optimizing code. [0-3]",
"type": "i"
},
"shrinkLevel": {
"description": "How much to focus on shrinking code size. [0-2, s=1, z=2]",
"type": "i"
},
"validate": {
"description": "Validates the module using Binaryen. Exits if invalid.",
"type": "b",
"alias": "c",
"default": false
},
"baseDir": {
"description": "Specifies the base directory of input and output files.",
"type": "s",
"default": "."
},
"outFile": {
"description": "Specifies the output file. File extension indicates format.",
"type": "s",
"alias": "o"
},
"binaryFile": {
"description": "Specifies the binary output file (.wasm).",
"type": "s",
"alias": "b"
},
"textFile": {
"description": "Specifies the text output file (.wat).",
"type": "s",
"alias": "t"
},
"asmjsFile": {
"description": "Specifies the asm.js output file (.js).",
"type": "s",
"alias": "a"
},
"idlFile": {
"description": "Specifies the WebIDL output file (.webidl).",
"type": "s",
"alias": "i"
},
"tsdFile": {
"description": "Specifies the TypeScript definition output file (.d.ts).",
"type": "s",
"alias": "d"
},
"sourceMap": {
"description": [
"Enables source map generation. Optionally takes the URL",
"used to reference the source map from the binary file."
],
"type": "s"
},
"debug": {
"description": "Enables debug information in emitted binaries.",
"type": "b",
"default": false
},
"noAssert": {
"description": "Replaces assertions with just their value without trapping.",
"type": "b",
"default": false
},
"noEmit": {
"description": "Performs compilation as usual but does not emit code.",
"type": "b",
"default": false
},
"importMemory": {
"description": "Imports the memory instance provided by the embedder.",
"type": "b",
"default": false
},
"sharedMemory": {
"description": "Declare memory as shared by settings the max shared memory.",
"type": "i",
"default": 0
},
"memoryBase": {
"description": "Sets the start offset of compiler-generated static memory.",
"type": "i",
"default": 0
},
"importTable": {
"description": "Imports the function table instance provided by the embedder.",
"type": "b",
"default": false
},
"noLib": {
"description": "Does not include the shipped standard library.",
"type": "b",
"default": false
},
"lib": {
"description": [
"Adds one or multiple paths to custom library components and",
"uses exports of all top-level files at this path as globals."
],
"type": "s"
},
"use": {
"description": [
"Aliases a global object under another name, e.g., to switch",
"the default 'Math' implementation used: --use Math=JSMath"
],
"type": "S",
"alias": "u"
},
"trapMode": {
"description": [
"Sets the trap mode to use.",
"",
" allow Allow trapping operations. This is the default.",
" clamp Replace trapping operations with clamping semantics.",
" js Replace trapping operations with JS semantics.",
""
],
"type": "s",
"default": "allow"
},
"runPasses": {
"description": [
"Specifies additional Binaryen passes to run after other",
"optimizations, if any. See: Binaryen/src/passes/pass.cpp"
],
"type": "s"
},
"enable": {
"description": [
"Enables additional (experimental) WebAssembly features.",
"",
" sign-extension Enables sign-extension operations",
" mutable-global Enables mutable global imports and exports",
" bulk-memory Enables bulk memory operations",
" simd Enables SIMD types and operations.",
" threads Enables threading and atomic operations.",
""
],
"type": "s"
},
"transform": {
"description": "Specifies the path to a custom transform to 'require'.",
"type": "S"
},
"measure": {
"description": "Prints measuring information on I/O and compile times.",
"type": "b",
"default": false
},
"noColors": {
"description": "Disables terminal colors.",
"type": "b",
"default": false
},
" ...": {
"description": "Specifies node.js options (CLI only). See: node --help"
},
"-Os": { "value": { "optimize": true, "shrinkLevel": 1 } },
"-Oz": { "value": { "optimize": true, "shrinkLevel": 2 } },
"-O0": { "value": { "optimizeLevel": 0, "shrinkLevel": 0 } },
"-O1": { "value": { "optimizeLevel": 1, "shrinkLevel": 0 } },
"-O2": { "value": { "optimizeLevel": 2, "shrinkLevel": 0 } },
"-O3": { "value": { "optimizeLevel": 3, "shrinkLevel": 0 } },
"-O0s": { "value": { "optimizeLevel": 0, "shrinkLevel": 1 } },
"-O1s": { "value": { "optimizeLevel": 1, "shrinkLevel": 1 } },
"-O2s": { "value": { "optimizeLevel": 2, "shrinkLevel": 1 } },
"-O3s": { "value": { "optimizeLevel": 3, "shrinkLevel": 1 } },
"-O0z": { "value": { "optimizeLevel": 0, "shrinkLevel": 2 } },
"-O1z": { "value": { "optimizeLevel": 1, "shrinkLevel": 2 } },
"-O2z": { "value": { "optimizeLevel": 2, "shrinkLevel": 2 } },
"-O3z": { "value": { "optimizeLevel": 3, "shrinkLevel": 2 } }
}