Module Wasm_backend

module Abi : sig ... end

Shared value layout and fixed indices for the compiler, runtime, and JavaScript host. Every value struct extends ty_val, with its tag in field zero. Values with the same layout may have different tags.

module Compile : sig ... end

Compile core lambda-E expressions to WebAssembly-GC. Compilation does not evaluate expressions or invoke host capabilities. Hostfn values become closures calling imported host functions when the module runs.

module Emit : sig ... end

Binary emission for the WebAssembly-GC IR.

module Encode : sig ... end

Append binary encoding primitives to buffers. Numeric ranges are caller preconditions: the helpers do not check WebAssembly integer bounds.

module Ir : sig ... end

The WebAssembly-GC subset shared by the compiler, binary emitter, and diagnostic printer. Indices are zero-based. There is no linear memory or function table; all reference value and storage types are nullable.

module Runtime : sig ... end

Runtime functions expressed in the shared WebAssembly-GC IR.

module Wat : sig ... end

Human-readable diagnostics for the WebAssembly-GC IR.