Next: Symbolifier, Previous: GWAT, Up: Toolchain reference [Contents][Index]
The (wasm resolve)
module provides the resolve-wasm
procedure which lowers Wasm modules into a form that can be used by
the assembler or interpreter. The resolver replaces named references
with their respective integer identifiers, fills out the type table,
and adjusts i32 and i64 constants into their canonical form.
Lower the Wasm module mod into a form that can be assembled or interpreted. Returns a new Wasm module and does not modify mod.
When emit-names? is #t
, the returned Wasm module will
include a name map that maps the original, human-readable names to the
resolved integer identifiers.