You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.