Skip to content
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

support wasm-decompile ? #24

Open
aardappel opened this issue Apr 20, 2020 · 1 comment
Open

support wasm-decompile ? #24

aardappel opened this issue Apr 20, 2020 · 1 comment

Comments

@aardappel
Copy link

wasm-decompile works almost identically to wasm2wat (and is also part of WABT) so presumably could be an alternative option in this plugin.

Details: https://github.com/WebAssembly/wabt/blob/master/docs/decompiler.md

@RReverser

@syrusakbary
Copy link
Member

syrusakbary commented May 2, 2020

We would love to support it!

Right now we are using the wabt.js project maintained by @dcodeIO: https://github.com/AssemblyScript/wabt.js
Wabt.js is using the Emscripten integration from wabt ( https://github.com/WebAssembly/wabt/blob/master/src/wabt.post.js ) but wabbt.post.js doesn't seem to support it yet.

There are a few ways we could integrate wasm-decompile:

  1. Update wabt wabt.post.js and update the wabt.js project
  2. Make wabt compatible with WASI. Note: there is an open PR that was aiming for that
  3. Other way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants