Let me try asking these again with a different subject line in the hope of 
attracting answers.

Is it possible for 2 separately compiled .wasm packages to use the same HEAP8, 
possibly by not modularizing them? This would be to avoid data copies between 
the packages.
If using webidl_binder, copying data from JS to a WASM module requires 
something like:

               var wasmInBuffer = Module._malloc(myDataLength);
               Module.HEAPU8.set(myData, wasmInBuffer);
               Module.function(wasmInBuffer);
               Module._free(wasmInBuffer);

           Is it possible to add this JS to Module so instead of the module 
users having to do malloc & free it is internal to Module?

Hoping for some answers.

    -Mark

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/5B50A4F5-B2F5-43CB-8AB3-691251ED9881%40callow.im.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to