Compile safe WAT examples locally, inspect generated bytes, and scaffold server compilation for larger toolchains behind explicit gates.
(module ;; wat_subset_module
(func $add (param $a i32) (param $b i32) (result i32)
local.get $a
local.get $b
i32.add
)
(export "add" (func $add))
)func 0 add 0x23 local.get 0x25 local.get 0x27 i32.add 0x28 end
| ID | Name | Offset | Size |
|---|---|---|---|
| 1 | type | 0xa | 7 |
| 3 | function | 0x13 | 2 |
| 7 | export | 0x17 | 7 |
| 10 | code | 0x20 | 9 |