Skip to content

Support for multiple modules#338

Draft
abelstuker wants to merge 29 commits intomainfrom
feat/multiple-modules
Draft

Support for multiple modules#338
abelstuker wants to merge 29 commits intomainfrom
feat/multiple-modules

Conversation

@abelstuker
Copy link
Copy Markdown
Contributor

@abelstuker abelstuker commented Dec 9, 2025

This PR fixes #27 by adding support for multiple modules, including shared memory, tables, globals and cross-module function calls.

Currently no official Wasm nor unofficial tests have been included in the Latch spectest suite. To test the multiple module functionality, see the test examples in /tutorials/wat/main/mtuliple_modules_mX.wast. These example tests include the demonstration of:

You can provide multiple modules to the CLI by linking modules using the --link flag (e.g. ./wdcli mod1.wasm --link mod2.wasm mod3.wasm).

@abelstuker
Copy link
Copy Markdown
Contributor Author

Should we include Latch spectests to cover this multi-module extension?
In that case, I presume Latch must be upgraded first for it to be capable of handling the compilation and linking of multiple modules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📑 Support multiple modules

1 participant