:wave: Hey,
A few months ago I added support for WASM and Wasmtime to Compiler Explorer. It's made it's way through the review pipeline and is now on the live website! (Example)
It doesen't have all of the nice features that wasmtime explore
has, but my main goal was to quickly be able to look at what other engines emit for any given piece of wasm. I'm planning on adding support for a few more engines in the future.
Currently we only have version 20.0.1 which was the latest when I started this work, but now that It's in, it should be fairly easy to add new versions.
Whoa that's awesome!
I've actually wanted something like this in the past where I'd start with a small Rust function and then pipe it through both llvm and wasmtime and see what pops out, and this makes that even closer to a reality :)
Thanks so much for working on this! Also if you know of anything we can do upstream to help this let us know
The only thing it's missing is debug info to match line numbers to assembly instructions, like we have in wasmtime explore
. I haven't been keeping up with developments on that, so not sure how easy it is to port that.
I'd also like at some point to get a way to view the CLIF IR output, but I think that's just wiring stuff up in the CE side.
Otherwise it's pretty much "done"
Last updated: Nov 22 2024 at 17:03 UTC