StructArgument(u32)
takes a size argument, but it must be size % 8 == 0
. Does this mean that:
1: the data behind the ptr must be 8 byte aligned
2: for a struct of 9-16 size, I must pass 16 in the param, 17-32 pass 32, etc?
For 1, I don't think Cranelift makes any alignment assumptions for the source location. It always copies it to a properly aligned area on the stack anyway.
For 2, no idea.
Last updated: Dec 23 2024 at 12:05 UTC