It's implemented behind the `--experimental-wasm-return-call` flag in V8 and is supported by emscripten with `-mtail-call`. I don't know about other engines, though.
On Mon, Nov 4, 2019 at 6:38 PM Brion Vibber <[email protected]> wrote: > On Mon, Nov 4, 2019, 1:50 PM 'Thomas Lively' via emscripten-discuss < > [email protected]> wrote: > >> If you really want to avoid the native call stack from being exhausted by >> in-wasm recursion, another interesting avenue to pursue besides a bytecode >> interpreter would be a continuation passing style code transformation to >> use only `return_call` instructions from the tail call proposal, which >> don't add new native stack frames. >> > > Do you know if the tail call proposal is implemented in any engines yet? > That would be very useful for emulators doing dynamic recompilation as well. > > -- brion > > -- > 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/CAFnWYTnHkHaxOS1YHLiao7uws4vi1r-2-HUX-FkyL%2BFaAKMXXg%40mail.gmail.com > <https://groups.google.com/d/msgid/emscripten-discuss/CAFnWYTnHkHaxOS1YHLiao7uws4vi1r-2-HUX-FkyL%2BFaAKMXXg%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EVoE4r0MMx4V5M9TGhxcJC2X0hxQeCLe2eweaufB%2B00eg%40mail.gmail.com.
