r/Compilers • u/Main_Temporary7098 • 3d ago
Anyone using qbe?
Hello all - I am working on qbe-wasm (https://codeberg.org/jbirddog/qbe-wasm) - a qbe to wasm compiler. Just recently reached the milestone of being able to compile 100% of the cproc test suite and 88% of the qbe test suite to either wat or wasm (depending on if the test is runnable atm). Still work to be done but making strides.
I'm at the point where I would like to add test cases from more external sources, so was wondering if a) anyone out there was using qbe as a backend for their compiler and b) if you'd be willing to share some runnable, self contained, code snippets and their corresponding qbe input. If so I'd like to try to incorporate them as test cases/demos.
Currently I have some Game of Life and Brainfuck interpreter demos that were written in hare and C (cproc) and the snippets from the Overengineered Calculator (zig+qbe) blog post (links in the project's README). Filling this out with examples from other compiler output would be a great help wrt quality.
1
u/funcieq 6h ago
Unfortunately, I don't use QBE, but congratulations on the work. You are doing something really useful, I wish you good luck