Stream: wasm-tools

Topic: Lowering to core for variants in the component model


view this post on Zulip Christoph Hegemann (Jun 25 2026 at 08:58):

While working on lowering signatures to core for the memory64 extension to the component model I noticed that we always lower variant types to discriminants of i32

This seems to be in conflict with the spec/reference implementation for the canonical ABI which picks the narrowest size integer that fits the discriminant (need to switch to Code view for the link to point at the relevant bit).

Is this an oversight, or something we could/should fix?


Last updated: Jul 29 2026 at 05:03 UTC