Dan Gohman
Dan Gohman
In LLVM, wasm's multi-memory could in theory be modeled as address spaces. In theory, multi-memory used this way could give programs some amount of isolation, where they could be sure...
Upstream LLVM's wasm32-wasi target does not support -shared yet. Can you say more about your use case and what -shared is being used for?
There is a -shared option, but it was only implemented for Emscripten targets, and it doesn't work outside of Emscripten. The option in clang and wasi-sdk for building a wasm...
Exporting linear memory is the currently how C-like languages are compiled to wasm. It lets you pass pointers to wasm imports, and the other side can properly dereference them within...
Are you sure it's failing at the `wasm_instance_exports` call, or could it be failing at the `wasm_extern_as_func` call, which may be expecting the export to be a function?
Welcome! The wasi-libc Makefile uses some tools like sed, find, and diff, though those parts are effectively just doing consistency checking, which could be disabled without affecting the main product...
I've now submitted https://github.com/WebAssembly/wasi-libc/pull/335 to fix this.
> The Clang patch that adds __USING_WASM_EXCEPTIONS__ to predefined macros should be upstreamed. Do we need a wasm-specific macro here, or can we just use `__EXCEPTIONS`? Emscripten has multiple macros...
> Do you have any preferences on how to switch between the builds of libc++/libc++abi? I'd probably patch the compiler driver to pick different versions of the libraries depending on...
WASI-targeting clang already does support the atomic builtin functions in single-threaded mode, so would it make sense to install musl's pthread.h somewhere in the install directory that you can add...