WASM-AS(1)
โจ 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.wasmgoes ๐ผ--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โ enablememory.copyandmemory.fill๐--disable-bulk-memory-optโ disablememory.copyandmemory.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โ enablememory64๐ง--disable-memory64โ disablememory64๐ง--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 formKEY@VALUE. IfKEYis the name of a pass then it applies to the closest instance of that pass before us. IfKEYis 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 tostderr๐
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
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
- ubuntu stonking: binaryen 131-2 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms