Hi Sam,
We have a pretty big project and it is possible that we run into issues
if stack size is minimalized.
We are OK, if the default stack size could be set with -sTOTAL_STACK.
Thank you,
Imre
2021.05.19. 10:27 keltezéssel, Floh írta:
My C coding style is a bit stack heavy because it heavily prefers
using the stack instead of heap allocations.
Example:
https://github.com/floooh/sokol-samples/blob/b7f8968f6dfd223a80b5ce9f50c40c2b79492403/sapp/cube-sapp.c#L19-L105
1 MB is quite certainly ok (but might be a problem for code with lots
of recursions?), but I think 64 KByte is asking for trouble ;)
As long as there are clear runtime error messages which indicate stack
overflow I'm fine with any size though, what would suck is random
memory corruption caused by an overflowing stack.
Cheers,
-Floh.
On Tuesday, 18 May 2021 at 22:21:01 UTC+2 [email protected] wrote:
I have an open PR to reduce the default stack size in emscripten
from 5Mb to 1Mb, and we are also considering reducing it even
furthur (possibly to 64Kb which is the wasm-ld default, or to
128Kb, which is the musl default):
https://github.com/emscripten-core/emscripten/pull/14177
<https://github.com/emscripten-core/emscripten/pull/14177>.
How many folks out there have run into stack limits with the
current limit of 5Mb? How many folks are worried they would run
into limits if we reduce the default to 1Mb, 128Kb or 64Kb?
Would those who feel they need more stack be OK adding
`-sTOTAL_STACK` to their link command to request a higher limit?
(feel free to respond there, or on the issue above).
cheers,
sam
--
You received this message because you are subscribed to the Google
Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/0ef02392-4a8b-4442-a48c-957570977659n%40googlegroups.com
<https://groups.google.com/d/msgid/emscripten-discuss/0ef02392-4a8b-4442-a48c-957570977659n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/afe9892a-00f4-64a7-2c5a-32398a8d2bbb%40gmail.com.