WebAssembly / WASI

WebAssembly System Interface
Other
4.81k stars 249 forks source link

Does WASI considerate memory64? #400

Closed lygstate closed 3 years ago

lygstate commented 3 years ago

After https://github.com/WebAssembly/memory64 applied, we will have memory address of 64bit, How the WASI handling 64bit pointers properly?

Specifically Pointer<u8>

devsnek commented 3 years ago

I recently did a review of WASI for memory64 and didn't find any issues. A compliant implementation should work fine.

sunfishcode commented 3 years ago

I'm not aware of anyone running WASI on wasm64 yet, so likely there will be some work in the tools, however all the tools are built with wasm64 in mind, so in theory it should be straightforward. The Pointer type would be lowered to i64 on wasm64.

If you have further questions, please re-open or file new issues!