WASM-DIS(1)
π NAME π
ok so wasm-dis β bestie, she Un-assembles a .wasm (WebAssembly binary format) into a .wat (WebAssembly text
(yeah the original line just kinda trails off there, we're keeping it π)
β¨ DESCRIPTION β¨
okay so picture this: you got a .wasm file, which is the WebAssembly binary format. It's giving β¨unreadableβ¨. And you want a .wat, which is the WebAssembly text format. That's it, that's the whole job. wasm-dis does that conversion for you, no cap. π¦
================================================================================
wasm-dis INFILE
Un-assemble a .wasm (WebAssembly binary format) into a .wat (WebAssembly
text format)
================================================================================
π wasm-dis options: π
--output,-oβ the output file!! If you don't say anything, she writes tostdout(so like, straight to your terminal, main character behavior πΈ)--source-map,-smβ eat a source map from the file you name, so your output gets location information sprinkled in there π«
π§ Tool options: π§
--mvp-features,-mvpβ turn OFF every single non-MVP feature. all of them. bye π--all-features,-allβ turn ON every single feature. yes queen, all of it π--detect-featuresβ > deprecated, bestie!! this flag does literally nothing. it's just vibes now π--quiet,-qβ less yapping, and hide the trivial warnings. she's being lowkey π€«--experimental-poppyβ parse wast files as Poppy IR, purely for testing purposes π§ͺ--emit-module-namesβ emit module names even if you're 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 (this one is Ignored for compatibility as it has no effect on Binaryen π)--disable-call-indirect-overlongβ disable LEB encoding of call-indirect (also Ignored for compatibility, also 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!! it's a relic bestie π«Ά--disable-typed-function-referencesβ > Deprecated compatibility flag!! also a relic π«Ά--no-validation,-nβ disables validation entirely and just assumes your inputs are correct. > careful with this one, she's not checking your work anymore π--pass-arg,-paβ an argument passed along to the 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. iykyk π--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. she trusts nobody's nosy hands π--preserve-type-orderβ preserve the order of types from the input (so useful for debugging and testing fr fr π₯)--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π
and that's the whole page, bestie!! π go un-assemble something iconic, you absolute legend. this little gem is from wasm-dis version 131, dated August 2026, man page name WASM-DIS(1) β periodt. π β¨π
π¦ 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