[M3devel] small structs
peter.mckinna at gmail.com
Mon Jun 26 08:21:51 CEST 2017
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the M3devel