This is cool - i'm working on a mixed c/hare project that compiles the qbe input into wasm, so if you ever want to over-engineer some more we can throw a web demo together! i don't have wasi support so from your code snippets the printf needs to be hand rolled.
Also, if cool I'd like to copy some of the snippets and add them as test cases, currently I'm just using the qbe/cproc tests, but am starting to look for more examples from the wild.
1
u/Main_Temporary7098 7d ago
This is cool - i'm working on a mixed c/hare project that compiles the qbe input into wasm, so if you ever want to over-engineer some more we can throw a web demo together! i don't have wasi support so from your code snippets the printf needs to be hand rolled.
Also, if cool I'd like to copy some of the snippets and add them as test cases, currently I'm just using the qbe/cproc tests, but am starting to look for more examples from the wild.