Stream: cranelift

Topic: What is the correct WinX64 StructArgument parameter?


view this post on Zulip Cherry (Jun 20 2024 at 00:42):

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?

view this post on Zulip bjorn3 (Jun 20 2024 at 08:31):

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.

view this post on Zulip bjorn3 (Jun 20 2024 at 08:31):

For 2, no idea.


Last updated: Dec 23 2024 at 12:05 UTC