Stream: git-wasmtime

Topic: wasmtime / issue #6884 wiggle: generate offset accessors ...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2023 at 20:10):

pchickey commented on issue #6884:

The witx offsets are supposed to align with repr(C) for the wasm32 ABI defined by clang, but that wont be the same as the repr(C) on the host.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2023 at 20:12):

pchickey edited a comment on issue #6884:

The witx offsets are repr(C) for the wasm32 ABI defined by clang, but that wont be the same as the repr(C) on the host.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2023 at 20:21):

acfoltzer commented on issue #6884:

Ahh, of course! Glad I didn't pursue that, then. This seems to be good enough for anyone who really needs this to do what they want with GuestPtr, even if it's not super convenient. Convenience is for wit-bindgen at this point

view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2023 at 20:27):

pchickey commented on issue #6884:

Yep this is a perfectly fine way to get the right inputs for your GuestPtr operations. The wiggle generator has all that information, so there's no reason not to expose it to the user if they want it.


Last updated: Dec 23 2024 at 12:05 UTC