Replies: 1 comment 2 replies
-
If you can get the AssemblyScript module to use an imported memory, this could work, but you'd also need to get it to use a specified range of linear memory that the main program mallocs first (so they don't trample each other), and likewise for the table. That basically means doing something like dynamic linking manually. It's possible but it would be good to check with AssemblyScript if they have plans to support proper dynamic linking, in which case things would just work. Alternatively, if AssemblyScript used Wasm GC then it would not need linear memory at all, and this would get a lot simpler. cc @dcodeIO |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I want to load a wasm module compiled by AssemblyScript into a compiled wasm emscripten module written in c++, the goal would be to dynamically recompile the AssemblyScript module and allow the user to reload the module without recompiling the c++ module. Additionally both modules should share the same memory.
How can I do that? Is this even possible?
Beta Was this translation helpful? Give feedback.
All reactions