wabt icon indicating copy to clipboard operation
wabt copied to clipboard

Update GC proposal support to recent phase 2 version

Open takikawa opened this issue 3 years ago • 3 comments

There is some support for the GC proposal in wabt already behind a flag, but it predates the current design for the proposal (that recently went to phase 2) that includes new type constructs like rec, sub, and so on.

Now that the design is more stable, it could be a good time to catch up support in wabt. I'm interested in working on this if nobody already has patches in progress.

takikawa avatar Mar 30 '22 17:03 takikawa

Just ran into this while investigating what the Kotlin compiler generates, using wasm2wat

0000067: error: unexpected type form (got -0x32)

https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md#defined-types: rec

Are there any other tools that can be used to inspect modules that use the GC MVP?

turbolent avatar Dec 14 '23 06:12 turbolent

You can use the tools in binaryen (e.g. wasm-dis and wasm-as)

sbc100 avatar Dec 14 '23 06:12 sbc100

@sbc100 Thanks, wasm-dis works well and even has colored output, nice 👌

turbolent avatar Dec 14 '23 17:12 turbolent