fitzgen opened PR #5975 from explorer
to main
:
This implements Godbolt Compiler Explorer-like functionality for Wasmtime and Cranelift. Given a Wasm module, it compiles the module to native code and then writes a standalone HTML file that gives a split pane view between the WAT and ASM disassemblies.
THIS IS VERY MUCH AN MVP!!! Tons of stuff we could do with this, very little it actually does so far.
Usage:
$ wasmtime explore test.wasm -o test.explore.html $ xdg-open test.explore.html
Once visiting the HTML page, you can hover over lines of WAT or asm and the corresponding lines will be highlighted. You can also click to scroll the corresponding line into view.
Here is a little screen recording, although the mouse itself isn't captured so it is a little hard to see what is going on:
Screencast from 2023-03-09 17-22-06.webm
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen requested alexcrichton for a review on PR #5975.
Last updated: Dec 23 2024 at 12:05 UTC