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


3.4 Linker

The (wasm link) module provides a means for extending a WASM module with the standard library that it needs at runtime. Hoot uses the linker to add the Scheme runtime to the compiled form of user code. The linker uses a form of tree-shaking to remove anything that is not used by the base module.

Procedure: add-stdlib wasm stdlib

Return a new WASM module that is the combination of the WASM module wasm with the WASM module stdlib.