emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Use exported memory when building a MAIN_MODULE. NFC

Open sbc100 opened this issue 1 year ago • 1 comments

Side modules import the memory but the main module should export it.

sbc100 avatar Aug 07 '24 22:08 sbc100

Marking as draft since I think this might be more complex that i thought.

I'm think as long as we are buiding the main module as PIC the linker cannot create the memory since it doesn't know how much space it needs to use.

sbc100 avatar Aug 07 '24 23:08 sbc100