Hi guys! I want to write some tool to analyze wasm files. My first
target is to create tool like bloaty to analyze size of contribution
of each function in resulting size. But bloatly is universal tool, I
want to concentrate on wasm format and maybe create something like
"code explorer" tool (like go-to symbol, jump to declaration etc.).
Anyway I need to parse wasm in some way.

>From Binaryen page:
```
Binaryen also provides a set of toolchain utilities that can

Parse and emit WebAssembly. In particular this lets you load
WebAssembly, optimize it using Binaryen, and re-emit it, thus
implementing a wasm-to-wasm optimizer in a single command.
```

So maybe is good way to start. I can write fake optimization pass,
that just counting sizes. Is it possible? I didn't find any example
how to do wasm-2-wasm, or how to get AST from wasm source.

Anyway, for "code explorer" part, I need parse wasm as AST or similar
structure, is Binaryen good for this?

I also found this projects:
https://github.com/WebAssembly/wabt
https://github.com/xtuc/webassemblyjs

All of them looks solid, but I don't understand pros+cons

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to