<div dir="ltr">Hey,<div>  I have a problem passing small structs by value to an external C function. If the size of the struct/record is less than 16 bytes there seems to be an ABI mismatch, at least on x86_64 not sure of other targets. If it's larger than 16 bytes the value is passed on the stack as usual and works fine otherwise it looks as if the fields of the struct are extracted and passed in registers.</div><div><br></div><div>  Any thoughts?</div><div><br></div><div>Regards Peter</div><div><br></div></div>