What compiler allows me to compile WAT which uses some of the new Wasm GC instructions like array.new
to the Wasm binary format? I tried wasm-tools
but that doesn't seem to work, neither does wat2wasm.
Here's the code I am trying to compile:
(module
(type $vec (array i32))
(func (export "foo") (result (ref $vec))
(array.new_default $vec (i32.const 3))
)
)
Ok, I think I managed to compile it with wasm-tool
, except that wasm-tools print
cannot parse the binary format. Seems to be a bug.
Ah never mind. I just updated and it now works :tada:
Dominic Elm has marked this topic as resolved.
Last updated: Dec 23 2024 at 12:05 UTC