javascript - Decoding .wasm WebAssembly files - Stack Overflow

admin2025-04-17  1

Is there a way to decode .wasm WebAssembly files and either understand it or convert it to javascript?

for example I have this script and I would like to know how to decode it

Is there a way to decode .wasm WebAssembly files and either understand it or convert it to javascript?

for example I have this script and I would like to know how to decode it

Share asked May 20, 2020 at 2:37 LucLuc 84313 silver badges23 bronze badges 2
  • Does this answer your question? How to decode a .wasm code? Is it possible? – Zachary Haber Commented May 20, 2020 at 2:58
  • @ZacharyHaber not as much as i would like – Luc Commented May 20, 2020 at 3:23
Add a ment  | 

1 Answer 1

Reset to default 4

There are a couple of different ways to decode a wasm file. The first, and simplest, is wasm2wat from the WebAssembly Binary Toolkit. This simply takes a binary wasm file and converts it into a human-readable text form (WAT). However, wasm is a pact and relatively low level binary format, and as a result, much of the information in the original code is lost. As a result, depiled WAT files may not be that easy to read.

More recently, the Chrome team launched wasm-depile, a tool that attempts to create a more readable depiled output using a pseudo language that is quite readable (for JavaScript developers).

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744857310a270906.html

最新回复(0)