wasi-sdk icon indicating copy to clipboard operation
wasi-sdk copied to clipboard

About target *wasm32-wasip2-module*

Open lum1n0us opened this issue 1 year ago • 2 comments

I noticed an interesting concept in the slide of Wasm CG June 2024.

It said that add two targets in Preview 2, --target=wasm32-wasip2-component and --target=wasm32-wasip2-module. The latter is

easy to add to existing core wasm engines

I hope to get more details about that topic. Please give me a link or something else.

lum1n0us avatar Jun 10 '24 22:06 lum1n0us

Hi @lum1n0us I think the idea was briefly discussed in this ticket: https://github.com/WebAssembly/WASI/issues/595 So basically the *-module is a foundational part for building the adapter, and the target in the linked discussion was called wasit2.

The primary difference between *-component and *-module in the context of the wasi-sdk IIUC is the linker (wasm-component-ld should be used to generate components, and wasm-ld for core modules). I'm not sure if those two should be a completely separate targets or one parametrized target (but I guess that's more an implementation detail).

loganek avatar Jun 10 '24 23:06 loganek

thanks for that. wasit2 it is. Do you know any developing status about that work?

lum1n0us avatar Jun 11 '24 02:06 lum1n0us