settings.js contains the defaults, at the default compilation settings (which is -O0). It should also mention what changes in higher optimization levels. I think most places do, though I see ASSERTIONS lacks a comment saying it is disabled in -O1 and above, which is a bug (I opened https://github.com/emscripten-core/emscripten/pull/23823 for that now).
On Tue, Mar 4, 2025 at 7:07 AM Xellos <[email protected]> wrote: > Hello, > where can I find the default values of settings at various optimization > levels? > > E.g. in settings.js, I can see "ASSERTIONS=1 is the default at -O0", but I > can't find any document containing the full list of such defaults. I'd > expect it linked from > https://emscripten.org/docs/optimizing/Optimizing-Code.html. > > -- > 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 visit > https://groups.google.com/d/msgid/emscripten-discuss/860453dc-76f8-40ab-b96c-e25b714821d0n%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/860453dc-76f8-40ab-b96c-e25b714821d0n%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 visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpTfJD1cStUwbs3uaLOxDi_wzPXwXwLTNa8gk7_k0eO9jw%40mail.gmail.com.
