-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add binaryen option --add-stack-limit-global #2849
Conversation
…en to emit the stack limit global variable to the wasm module
This should be controlled by the emscripten |
This is for release builds. We want to have ability to check free stack space, but not emit runtime stack checks or other debug code. |
Oh, can't you do that with |
Hopefully a lot of this will not be necessary in emscripten-core/emscripten#11166 lands. After this change it should be possible to these two new functions as aliases that live in The alias syntax in the
|
I was not able to call
Also was not able to access these from within wasm, without having to jump out to JS. |
Yes, as of, #11166 you should now be able to call stackSave() and friends from the C code.
|
This was resolved in another way earlier, so no longer relevant. |
Add binaryen option --add-stack-limit-global to enable controlling when to emit the stack limit global variable to the wasm module.