javy icon indicating copy to clipboard operation
javy copied to clipboard

Support a WASI reactor target

Open andrewmd5 opened this issue 5 months ago • 3 comments

Operating system: macOS Processor architecture: M1 (arm64) Rust version: not applicable Javy version: latest

Problem

WASI/WASM ceremony is all over the place depending on what compiler produced the module. Most expect _start or _initialize to be called prior to any exported functions being invoked.

In the case of modules produced by Javy, if _start is called any subsequent calls to exported functions will fail with wasmtime reporting they’re unreachable.

If I remove my calls to _start then I can call into my exported functions without issue.

andrewmd5 avatar Jan 19 '24 18:01 andrewmd5