From 418804035056bcd133ff5e292bf645d5d26d8d0d Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 22 Mar 2021 16:33:37 -0700 Subject: wasm-emscripten-finalize: Do not skip the start function body (#3714) When we can skip function bodies, we still need to parse the start function for the pthreads case, see details in the comments. This still gives us 99% of the speedup as the start function is just 1 function and it's not that big, so with this we return to full speed after the reversion in #3705 --- test/lld/em_asm_pthread.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/lld/em_asm_pthread.cpp (limited to 'test/lld/em_asm_pthread.cpp') diff --git a/test/lld/em_asm_pthread.cpp b/test/lld/em_asm_pthread.cpp new file mode 100644 index 000000000..d327bedf2 --- /dev/null +++ b/test/lld/em_asm_pthread.cpp @@ -0,0 +1,13 @@ +// Build with +// +// emcc a.cpp -pthread -s WASM_BIGINT +// + +#include + +EM_JS(void, world, (), { console.log("World."); }); + +int main() { + EM_ASM({ console.log("Hello."); }); + world(); +} -- cgit v1.2.3