WASM-AS(1)

๐Ÿ“ฆ
version 131 ยท 3 versions
, in ubuntu stonking

โœจ NAME โœจ

wasm-as โ€” assemble a .wat (WebAssembly text format) into a .wasm (WebAssembly binary


๐ŸŒธ DESCRIPTION ๐ŸŒธ

Like bestie, this is THE tool. The one. Manual name is wasm-as and it lives on your system as a User Commands girly, okurrr ๐Ÿ’…

wasm-as INFILE

What it does: assembles a .wat (WebAssembly text format) into a .wasm (WebAssembly binary format). That's it, that's the whole vibe. โœจ

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐ŸŽ€ wasm-as options ๐ŸŽ€

  • --output, -o โ€” the output file, like where your lil baby .wasm goes ๐Ÿผ
  • --validate, -v โ€” control validation of the output module (keep an eye on it fr)
  • --debuginfo, -g โ€” emit names section and debug info ๐Ÿ›
  • --source-map, -sm โ€” emit source map to the specified file ๐Ÿ—บ๏ธ
  • --source-map-url, -su โ€” use specified string as source map URL ๐Ÿ”—
  • --symbolmap, -s โ€” emit a symbol map (indexes => names) ๐Ÿ‘‘

๐Ÿงš Tool options ๐Ÿงš

  • --mvp-features, -mvp โ€” disable all non-MVP features, we're going vintage โœจ
  • --all-features, -all โ€” enable ALL the features, no crumbs left ๐Ÿ“
  • --detect-features โ€” (deprecated - this flag does nothing) ๐Ÿ’€ literally a decorative flag, it does nothing, do not perceive it
  • --quiet, -q โ€” emit less verbose output and hide trivial warnings ๐Ÿคซ
  • --experimental-poppy โ€” parse wast files as Poppy IR for testing purposes ๐Ÿงช
  • --emit-module-names โ€” emit module names, even if not emitting the rest of the names section ๐Ÿ“›
  • --enable-sign-ext โ€” enable sign extension operations โž•
  • --disable-sign-ext โ€” disable sign extension operations โž–
  • --enable-threads โ€” enable atomic operations ๐Ÿงต
  • --disable-threads โ€” disable atomic operations ๐Ÿงต
  • --enable-mutable-globals โ€” enable mutable globals ๐Ÿ”„
  • --disable-mutable-globals โ€” disable mutable globals ๐Ÿ”„
  • --enable-nontrapping-float-to-int โ€” enable nontrapping float-to-int operations ๐ŸŽฃ
  • --disable-nontrapping-float-to-int โ€” disable nontrapping float-to-int operations ๐ŸŽฃ
  • --enable-simd โ€” enable SIMD operations and types ๐ŸŽ๏ธ
  • --disable-simd โ€” disable SIMD operations and types ๐ŸŽ๏ธ
  • --enable-bulk-memory โ€” enable bulk memory operations ๐Ÿ“ฆ
  • --disable-bulk-memory โ€” disable bulk memory operations ๐Ÿ“ฆ
  • --enable-bulk-memory-opt โ€” enable memory.copy and memory.fill ๐Ÿ“‹
  • --disable-bulk-memory-opt โ€” disable memory.copy and memory.fill ๐Ÿ“‹
  • --enable-call-indirect-overlong โ€” enable LEB encoding of call-indirect (Ignored for compatibility as it has no effect on Binaryen) ๐Ÿ™ˆ
  • --disable-call-indirect-overlong โ€” disable LEB encoding of call-indirect (Ignored for compatibility as it has no effect on Binaryen) ๐Ÿ™ˆ
  • --enable-exception-handling โ€” enable exception handling operations ๐Ÿšจ
  • --disable-exception-handling โ€” disable exception handling operations ๐Ÿšจ
  • --enable-tail-call โ€” enable tail call operations ๐Ÿ•
  • --disable-tail-call โ€” disable tail call operations ๐Ÿ•
  • --enable-reference-types โ€” enable reference types ๐Ÿชž
  • --disable-reference-types โ€” disable reference types ๐Ÿชž
  • --enable-multivalue โ€” enable multivalue functions ๐ŸŽ
  • --disable-multivalue โ€” disable multivalue functions ๐ŸŽ
  • --enable-gc โ€” enable garbage collection ๐Ÿ—‘๏ธ
  • --disable-gc โ€” disable garbage collection ๐Ÿ—‘๏ธ
  • --enable-memory64 โ€” enable memory64 ๐Ÿง 
  • --disable-memory64 โ€” disable memory64 ๐Ÿง 
  • --enable-relaxed-simd โ€” enable relaxed SIMD ๐Ÿ˜Œ
  • --disable-relaxed-simd โ€” disable relaxed SIMD ๐Ÿ˜Œ
  • --enable-extended-const โ€” enable extended const expressions ๐Ÿงฎ
  • --disable-extended-const โ€” disable extended const expressions ๐Ÿงฎ
  • --enable-strings โ€” enable strings ๐Ÿงถ
  • --disable-strings โ€” disable strings ๐Ÿงถ
  • --enable-multimemory โ€” enable multimemory ๐Ÿ—‚๏ธ
  • --disable-multimemory โ€” disable multimemory ๐Ÿ—‚๏ธ
  • --enable-stack-switching โ€” enable stack switching ๐Ÿ”€
  • --disable-stack-switching โ€” disable stack switching ๐Ÿ”€
  • --enable-shared-everything โ€” enable shared-everything threads ๐Ÿค
  • --disable-shared-everything โ€” disable shared-everything threads ๐Ÿค
  • --enable-fp16 โ€” enable float 16 operations ๐ŸŒŠ
  • --disable-fp16 โ€” disable float 16 operations ๐ŸŒŠ
  • --enable-custom-descriptors โ€” enable custom descriptors (RTTs) and exact references ๐Ÿท๏ธ
  • --disable-custom-descriptors โ€” disable custom descriptors (RTTs) and exact references ๐Ÿท๏ธ
  • --enable-multibyte โ€” enable multibyte array loads and stores ๐Ÿงฑ
  • --disable-multibyte โ€” disable multibyte array loads and stores ๐Ÿงฑ
  • --enable-relaxed-atomics โ€” enable acquire/release atomic memory operations โš›๏ธ
  • --disable-relaxed-atomics โ€” disable acquire/release atomic memory operations โš›๏ธ
  • --enable-custom-page-sizes โ€” enable custom page sizes ๐Ÿ“„
  • --disable-custom-page-sizes โ€” disable custom page sizes ๐Ÿ“„
  • --enable-wide-arithmetic โ€” enable wide arithmetic ๐Ÿ˜
  • --disable-wide-arithmetic โ€” disable wide arithmetic ๐Ÿ˜
  • --enable-compact-imports โ€” enable compact import section ๐Ÿ“ฅ
  • --disable-compact-imports โ€” disable compact import section ๐Ÿ“ฅ
  • --enable-typed-function-references โ€” Deprecated compatibility flag ๐Ÿ’€
  • --disable-typed-function-references โ€” Deprecated compatibility flag ๐Ÿ’€
  • --no-validation, -n โ€” disables validation, assumes inputs are correct ๐Ÿ˜ณ bestie this one is living DANGEROUSLY, it just trusts you. If your input is wrong it will not save you.
  • --pass-arg, -pa โ€” an argument passed along to optimization passes being run. Must be in the form KEY@VALUE. If KEY is the name of a pass then it applies to the closest instance of that pass before us. If KEY is not the name of a pass then it is a global option that applies to all pass instances that read it. ๐ŸŽŸ๏ธ
  • --closed-world, -cw โ€” assume code outside of the module does not inspect or interact with GC and function references, even if they are passed out. The outside may hold on to them and pass them back in, but not inspect their contents or call them. ๐Ÿšช
  • --preserve-type-order โ€” preserve the order of types from the input (useful for debugging and testing) ๐Ÿ”ข
  • --generate-stack-ir โ€” generate StackIR during writing ๐Ÿ—๏ธ
  • --optimize-stack-ir โ€” optimize StackIR during writing โœจ
  • --print-stack-ir โ€” print StackIR during writing ๐Ÿ–จ๏ธ

๐ŸŒˆ General options ๐ŸŒˆ

  • --version โ€” output version information and exit ๐Ÿ“Œ
  • --help, -h โ€” show this help message and exit ๐Ÿ†˜
  • --debug, -d โ€” print debug information to stderr ๐Ÿž

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

okay that's the whole page bestie, you ate that ๐Ÿ’–

Sign-off moment: this is wasm-as version 131, dated August 2026, from the wasm-as man page. Go assemble something iconic. ๐Ÿฆ‹โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from