Replies: 1 comment 4 replies
-
In order for modules to share memory then need to import the memory from JS. With emscripten, when you build with I would advise against attempted to run |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi guys,
I watched this in MDN : "A WebAssembly.Module object contains stateless WebAssembly code that has already been compiled by the browser — this can be efficiently shared with Workers, and instantiated multiple times." , and the book WebAssembly in Action write by C.Gerard Gallant said that "Multiple instances of WebAssembly can share the same linear memory(ArrayBuffer)" in part 2.1. And I want to know, will the memory of instance a be changed because of instance b while some module hold tow instance(instance a and instance b)? I can't instantiate my module in this emcc version (3.0.1) now like this
whitch is come from the book WebAssembly in Action base on emsdk version 1.38.45.
Beta Was this translation helpful? Give feedback.
All reactions