Skip to content

What is the difference between wasm-as and wat2wasm? #5435

Answered by tlively
Evian-Zhang asked this question in Q&A
Discussion options

You must be logged in to vote

WABT's wat2wasm translates directly to Wasm without modifying anything and supports the full standard text format. Binaryen's wasm-as does not support the full standard text format (although we are working on fixing that) and may modify instruction sequences that are not directly representable in Binaryen IR. If all you want to do is translate wat to Wasm, you're probably better off using wat2wasm as long as WABT supports all the Wasm features you're using. On the other hand, if you're developing a toolchain or optimization pipeline that uses Binaryen for other things, you might as well use wasm-as.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Evian-Zhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants