forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasc.json
More file actions
264 lines (264 loc) · 7.71 KB
/
asc.json
File metadata and controls
264 lines (264 loc) · 7.71 KB
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
{
"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 -O3s",
" -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"
},
"converge": {
"description": "Re-optimizes until no further improvements can be made.",
"type": "b",
"default": false
},
"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"
},
"runtime": {
"description": [
"Specifies the runtime variant to include in the program.",
"",
" full Default runtime based on TLSF and reference counting.",
" half Same as 'full', but not exported to the host.",
" stub Minimal stub implementation without free/GC support.",
" none Same as 'stub', but not exported to the host.",
""
],
"type": "s",
"default": "full"
},
"noUnsafe": {
"description": [
"Disallows the use of unsafe features in user code.",
"Does not affect library files and external modules."
],
"type": "b",
"default": false
},
"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
},
"explicitStart": {
"description": "Exports an explicit start function to be called manually.",
"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"
},
"path": {
"description": [
"Adds one or multiple paths to package resolution, similar",
"to node_modules. Prefers an 'ascMain' entry in a package's",
"package.json and falls back to an inner 'assembly/' folder."
],
"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 WebAssembly features that are disabled by default.",
"",
" sign-extension Sign-extension operations",
" bulk-memory Bulk memory operations.",
" simd SIMD types and operations.",
" threads Threading and atomic operations.",
" reference-types Reference types and operations.",
""
],
"TODO_doesNothingYet": [
" nontrapping-f2i Non-trapping float to integer ops.",
" exception-handling Exception handling.",
" tail-calls Tail call operations."
],
"type": "s"
},
"disable": {
"description": [
"Disables WebAssembly features that are enabled by default.",
"",
" mutable-globals Mutable global imports and exports.",
""
]
},
"transform": {
"description": "Specifies the path to a custom transform to 'require'.",
"type": "S"
},
"traceResolution": {
"description": "Enables tracing of package resolution.",
"type": "b",
"default": false
},
"listFiles": {
"description": "Lists files to be compiled and exits.",
"type": "b",
"default": false
},
"measure": {
"description": "Prints measuring information on I/O and compile times.",
"type": "b",
"default": false
},
"printrtti": {
"description": "Prints the module's runtime type information to stderr.",
"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 } }
}