WABT(1)

🌸 WABT(1) β€” wat-desugar from the General Commands Manual 🌸

✨ NAME ✨

wat-desugar β€” parse .wat text form and print canonical flat format. that's the whole assignment, bestie: it parses the .wat text form and prints the canonical flat format. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

wat-desugar [options] filename

πŸ’– DESCRIPTION πŸ’–

wat-desugar reads a file in the wasm s-expression format and formats it. no cap, that's the main character move. πŸ¦‹

the options are literally as follows, and yes, we're going through every single one:

πŸŽ€ OPTIONS πŸŽ€

  • --help β€” prints this help message πŸ’–
  • --version β€” prints version information ✨
  • -o, --output=FILE β€” output file for the formatted file πŸŽ€
  • -f, --fold-exprs β€” writes folded expressions where possible πŸ¦‹
  • --inline-exports β€” writes all exports inline πŸ’…
  • --inline-imports β€” writes all imports inline πŸ’…
  • --disable-exceptions β€” turns off experimental exception handling πŸ™ˆ
  • --disable-mutable-globals β€” turns off import/export mutable globals πŸ’€
  • --disable-saturating-float-to-int β€” turns off saturating float-to-int operators πŸ”₯
  • --disable-sign-extension β€” turns off sign-extension operators πŸ”₯
  • --disable-simd β€” turns off SIMD support πŸ’€
  • --enable-threads β€” turns on threading support 🧚
  • --enable-function-references β€” turns on typed function references 🧚
  • --disable-multi-value β€” turns off multi-value πŸ™ˆ
  • --disable-tail-call β€” turns off tail-call support πŸ’€
  • --disable-bulk-memory β€” turns off bulk-memory operations 😭
  • --disable-reference-types β€” turns off reference types (externref) πŸ™ˆ
  • --disable-annotations β€” turns off custom annotation syntax πŸ’€
  • --enable-code-metadata β€” turns on code metadata ✨
  • --enable-gc β€” turns on garbage collection 🧚
  • --disable-memory64 β€” turns off 64-bit memory 😭
  • --disable-multi-memory β€” turns off multi-memory πŸ™ˆ
  • --disable-extended-const β€” turns off extended constant expressions πŸ’€
  • --disable-relaxed-simd β€” turns off relaxed SIMD πŸ”₯
  • --enable-custom-page-sizes β€” turns on custom page sizes πŸŽ€
  • --enable-compact-imports β€” turns on compact import section πŸ¦‹
  • --enable-wide-arithmetic β€” turns on wide arithmetic ⭐
  • --enable-all β€” turns on all features πŸ‘‘πŸ”₯

🌟 EXAMPLES 🌟

write output to stdout β€” say less, bestie:

$ wat-desugar test.wat

write output to test2.wat, iconic:

$ wat-desugar test.wat -o test2.wat

generate names for indexed variables, literally:

$ wat-desugar --generate-names test.wat

🌈 SEE ALSO 🌈

go give these iconique manual pages a read: wasm-interp(1), wasm-objdump(1), wasm-stats(1), wasm-strip(1), wasm-validate(1), wasm2c(1), wasm2wat(1), wast2json(1), wat2wasm(1), spectest-interp(1). 🫢

πŸ’€ BUGS πŸ’€

found a bug? 😭 no cap, report it at https://github.com/WebAssembly/wabt/issues.


source/version vibes: Debian Β· date: $Mdocdate$ Β· manual: WABT(1) β€” bye bestie, go format something cute πŸ«ΆπŸ’–

πŸ“¦ where this page comes from