Open
Description
Right now the default value of INITIAL_MEMORY
is 16MB, which sets a hard limit on the amount of static data in a module - the linker will error out if the amount is insufficient. To work around this, you need to be able to calculate the number beforehand, e. g. the official .NET SDK guesstimates by doing something to the effect of going over all of the inputs and summing their size.
This all seems rather self-inflicted. The linker already knows how much memory will it need, and indeed, if you don't pass --initial-memory
, it will already "do the right thing".
The question is, can this automatic behavior be supported by Emscripten natively?
Note: this is all assuming memory growth is allowed, of course.
Metadata
Metadata
Assignees
Labels
No labels