Next: , Previous: , Up: Toolchain reference   [Contents][Index]

5.8 Printer

The (wasm dump) module provides the dump-wasm procedure for generating a detailed print-out of a Wasm module’s contents. See also Low-level development tools for the wasm-dump REPL command.

Procedure: dump-wasm mod [#:port] [#:dump-func-defs? #t]

Write a detailed inventory of the Wasm module mod to port or the current output port if port is not specified. If dump-func-defs? is #t, which is the default, all function definitions are printed, including the instructions in the body of each. Depending on the size of the module, this may be an overwhelming amount of data, thus it is made optional.