Sounds like an interesting project!

I'm not sure you would need any help from emscripten to try and do this
kind of thing.

You can access the WebAssembly module's memory from JavaScript via
`Module['memory']` and then do whatever you want to it including passing it
your AssemblyScript.

The tricky part is how you manage memory within this shared heap.   At the
very least you would want to tell AssemblyScript about the limits of the
heap, and maybe even pass the emscripten modules `malloc` and `free`
functions over so it can coordinate with emscripten-compiled code.


On Wed, Aug 5, 2020 at 1:11 PM キャロウ マーク <[email protected]> wrote:

> Is it possible to create something like a Side Module (i.e. like a dll)
> written in AssemblyScript that could share the HEAP with emscripten
> compiled wasm code?
>
> If not possible now, is this something that could be supported with
> changes to Emscripten or AssemblyScript?
>
> Regards
>
>     -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/DF23CB4C-7719-4C4C-8749-8E9D220BA1C1%40callow.im
> .
>

-- 
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/CAL_va29aiyN7EGiLmdhYhodcE6vvizt6cjQJOKtpLN7rLMeFbw%40mail.gmail.com.

Reply via email to