-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce the wasmtime-explorer
crate
#5975
Conversation
Oh this also depends on publishing a new |
wasmstime-explorer
cratewasmtime-explorer
crate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's worth making this not be x86-specific, and of course the wasmprinter changes have to land, but overall this looks entirely reasonable to me. Also, it's super exciting!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! If capstone could compile with wasi-libc then we could also make a web demo out of this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All seems reasonable to me! I'm not necessarily reviewing the code too closely but at a high level I like the idea and I like the integration into the wasmtime
CLI.
Also FWIW this is sort of a hop-skip-and-a-jump away from getting source code with DWARF debugging information at this point too!
Yep, as I said, lots we could do here! Will be nice to just get something landed first tho. |
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 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:
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