diff --git a/src/compiler.md b/src/compiler.md index ac49996c8..3d813a312 100644 --- a/src/compiler.md +++ b/src/compiler.md @@ -23,7 +23,7 @@ asc entryFile.ts ``` --version, -v Prints just the compiler's version and exits. --help, -h Prints this message and exits. ---config Configuration file to apply. CLI arguments take precedence. +--config Configuration file to apply. CLI arguments take precedence. --target Configuration file target to use. Defaults to 'release'. ``` @@ -86,8 +86,8 @@ There are several flags that enable or disable specific WebAssembly or compiler --zeroFilledMemory Assume imported memory is zeroed. Requires importMemory. --importTable Imports the function table from 'env.table'. --exportTable Exports the function table as 'table'. ---exportStart Exports the start function using the specified name instead - of calling it implicitly. Useful for WASI or to obtain the +--exportStart Exports the start function using the specified name instead + of calling it implicitly. Useful for WASI or to obtain the exported memory before executing any code accessing it. --runtime Specifies the runtime variant to include in the program. @@ -97,8 +97,8 @@ There are several flags that enable or disable specific WebAssembly or compiler ... Path to a custom runtime implementation --exportRuntime Exports the runtime helpers (__new, __collect etc.). ---stackSize Overrides the stack size. Only relevant for incremental GC - or when using a custom runtime that requires stack space. +--stackSize Overrides the stack size. Only relevant for incremental GC + or when using a custom runtime that requires stack space. Defaults to 0 without and to 16384 with incremental GC. --enable Enables WebAssembly features being disabled by default. @@ -114,8 +114,8 @@ There are several flags that enable or disable specific WebAssembly or compiler nontrapping-f2i Non-trapping float to integer ops. bulk-memory Bulk memory operations. ---use, -u Aliases a global object under another name, e.g., to switch - the default 'Math' implementation used: --use Math=JSMath +--use, -u Aliases a global object under another name, e.g., to switch + the default 'Math' implementation used: --use Math=JSMath Can also be used to introduce an integer constant. --lowMemoryLimit Enforces very low (<64k) memory constraints. ``` @@ -162,6 +162,8 @@ Other options include those forwarded to Binaryen and various flags useful in ce --noColors Disables terminal colors. --noUnsafe Disallows the use of unsafe features in user code. Does not affect library files and external modules. +--disableWarning Disables warnings matching the given diagnostic code. + If no diagnostic code is given, all warnings are disabled. --noEmit Performs compilation as usual but does not emit code. --stats Prints statistics on I/O and compile times. --pedantic Make yourself sad for no good reason.