INITIAL_MEMORY, MAXIMUM_MEMORY cannot be set dynamically #21931
Replies: 4 comments 3 replies
-
Normally with emscripten the memory is part of the wasm file and this is exported to JS, so the intial and max values are baked into the binary. If you want to control them dynamically you can use the
BTW there some reason is not enough to just always set a low |
Beta Was this translation helpful? Give feedback.
-
My goal is to create one binary wasm that fit to Windows (4g) and iOS device (less than 1G) as well.
About the IMPORTED_MEMORY flag, it is not clear who to work with this flag. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Actually, MAXIMUM_MEMORY doesn't need be allocated dynamically.
|
Beta Was this translation helpful? Give feedback.
-
INITIAL_MEMORY, MAXIMUM_MEMORY cannot be set dynamically like PTHREAD_POOL_SIZE for example.
it is crucial for support in different Platforms (e.g. iOS vs Windows)
Beta Was this translation helpful? Give feedback.
All reactions