Inspired by this discussion, I added the default values to the settings HTML page now in
https://github.com/emscripten-core/emscripten/pull/21943 For example here is STACK_SIZE: https://emscripten.org/docs/tools_reference/settings_reference.html#stack-size - Alon On Tue, May 14, 2024 at 6:51 AM Brooke Vibber <br...@pobox.com> wrote: > The most reliable documentation for emscripten CLI settings is to look at > settings.js in the source: > > https://github.com/emscripten-core/emscripten/blob/main/src/settings.js#L99 > > The default here is indeed 65536 (64*1024). > > -- brooke > > > On Tue, May 14, 2024 at 6:39 AM Stephan Bergmann <sberg....@gmail.com> > wrote: > >> One thing that puzzles me with emcc is how to find out what default >> values are being used in the absence of certain -s options, like >> -sSTACK_SIZE=.... I find various mentions of STACK_SIZE across the >> <https://github.com/emscripten-core/emscripten/> tools/ dir, but none >> that suggests that it would set a default value. (And still, a linker >> invocation without an explicit -sSTACK_SIZE=... apparently passes -z >> stack-size=65536, wherever it takes that value from.) >> >> -- >> 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 emscripten-discuss+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/emscripten-discuss/106f7db3-a6ba-4cdd-b71e-e7fc0122858b%40gmail.com >> . >> > -- > 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 emscripten-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/CAFnWYTmmGqP9eSWcwypUGzb%3DipyZhRRiEog1a6U95%3Davq%3D02mw%40mail.gmail.com > <https://groups.google.com/d/msgid/emscripten-discuss/CAFnWYTmmGqP9eSWcwypUGzb%3DipyZhRRiEog1a6U95%3Davq%3D02mw%40mail.gmail.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 emscripten-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpSQzJhtenYvFiT5ypNR1Z5rwjGC5Hn6scXdccOir7rNmA%40mail.gmail.com.