Asyncify and emscripten updates

30 views
Skip to first unread message

Александр Гурьянов

unread,
Aug 25, 2021, 12:28:15 AM8/25/21
to emscripte...@googlegroups.com
Hi, everyone. I have well tuned list of asyncify functions for my js-dos project. If I understand correctly this function list is valid only for specific version of emscripten and optimizations flags. I compile project with -Oz flag, and if I change it to -O3 the asyncfiy list will be incomplete.

So, Am I need somehow maintain lists for Oz and O3 separately? This is first problem, but not so important I can use only Oz flag.

BUT, now I thinking how to update emscripten version. Is it true that updating emscripten to next version can require also rebuilding asyncify list? Can I do it safely somehow?

Alon Zakai

unread,
Aug 27, 2021, 6:50:31 PM8/27/21
to emscripte...@googlegroups.com
In general, I'm afraid there isn't an automatic and safe way to do this. If LLVM optimizations change (between -O3 and -Oz, or after an LLVM update with the same opts) then inlining might cause the call stacks to look different. If less is inlined, you'd need more functions in your list, if you use the only-list.

But the risk here might be small in practice, at least in my experience. If you make a single list for the union of -O3 and -Oz then it should work for both, and it is very rare that LLVM changes enough to cause problems.

- Alon




--
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-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVHXHQw4Lt7HpAyg9pSDZ2iEU95VEhwzhr2%3DWMXnaKCxWw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages