Closed ghost closed 1 year ago
Hi @zamfofex , I'm not familiar with Binaryen and Asyncify, but it is good to enable asynchronous functionality in compiled code.
I think it's ok with above change and adding command line option. Please send a pull request when you are done.
I am trying to implement coroutines (fibers) with the WebAssembly backend, alongside Binaryen’s Asyncify, and I now need to get information about the stack pointer so that I can copy the stack around. (See: WebAssembly/binaryen#5478)
I know this is a bit of a niche use‐case for this low‐level feature, so it is completely understandable if you don’t want to support it, but if it would be possible to export the stack pointer or add an option to export it, that would solve my problem entirely, and I’d really appreciate it!
Something along these lines (
src/wcc/traverse.c
):Thank you for working on this project, I believe it is wonderful!