[M3devel] small structs

Peter McKinna peter.mckinna at gmail.com
Mon Jun 26 08:21:51 CEST 2017


Hey,
  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.

  Any thoughts?

Regards Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20170626/1d3dff29/attachment.html>


More information about the M3devel mailing list