A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Working with Multiple Memories
You can also browse this source code online and clone the wasmtime repository to run the example locally:
This example demonstrates using the multiple memories proposal, instantiating a module that imports and exports more than one linear memory.
Wasm Source
{{#include ../examples/multimemory.wat}}
Host Source
{{#include ../examples/multimemory.rs}}
{{#include ../examples/multimemory.c}}
{{#include ../examples/multimemory.cc}}