July 15, 2021 at 7:03 am


Mesapy Executor

The executor is compiled into a library and will later be linked with ffi functions from other executor (mesapy).

How does T know where to link extern functions in Rust?

How is the linked mesapy library generated?

Check the makefile of mesapy


How to compile the WebAssembly

/opt/wasi-sdk/bin/clang -o simple_add.wasm simple_add.c -Wl,--export-all -Wl,--no-entry -nostdlib -Wl,--allow-undefined

The compiled wasm should not linked to stdlib currently, and adding --export-all can help it export functions. Otherwise the function would never be exported.

Modification on source code

Please refer the the Developer Guide and related documents.

WASM Executor