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

5.3 Resolver

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.

Procedure: resolve-wasm mod [#:name-section? #f]

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 name-section? is #t, the returned Wasm module will include a name map that maps the original, human-readable names to the resolved integer identifiers.