The executor is compiled into a library and will later be linked with ffi functions from other executor (
externfunctions in Rust?
Check the makefile of mesapy
/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.
Please refer the the Developer Guide and related documents.