You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/emscripten.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ The command options are as follows:
43
43
-`-s ASM_JS=1`: generate [asm.js][asm-js].
44
44
-`-O0`: no optimization. Suitable for initial development.
45
45
-`-O3`: aggressive optimization. Note that this option increases compilation time and may lead to larger code sizes. Suitable for release.
46
-
-`--memory-init-file <on>`: specifies whether to emit a memory initialization file. If `0`, static initialization is inlined in the generated JavaScript. If `1`, a separate file is generated for memory initialization. This file should be loaded _prior_ to run compiled output. Note that this option **only** applies for `asm.js`. For `wasm`, static memory initialization data is more efficiently included within the [WebAssembly][web-assembly] binary.
46
+
-`--memory-init-file <on>`: specifies whether to emit a memory initialization file. If `0`, static initialization is inlined in the generated JavaScript. If `1`, a separate file is generated for memory initialization. This file should be loaded _prior_ to running compiled output. Note that this option **only** applies for `asm.js`. For `wasm`, static memory initialization data is more efficiently included within the [WebAssembly][web-assembly] binary.
47
47
-`-s EXPORTED_FUNCTIONS="['_foo','_bar']"`: list of exported functions. Each function should be prefixed with an underscore; e.g., `foo` => `_foo`. Functions referred to in the list are **not** marked for dead code elimination and will be present in the compiled output.
48
48
-`-s EXPORTED_RUNTIME_METHODS="['cwrap','setValue','getValue]"`: runtime methods exported on `Module`. Many methods are exported by default and can be safely removed from the export list.
49
49
-`-s STRICT=1`: do **not** support deprecated build options.
0 commit comments