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


4.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.