<div dir="ltr"><div>Hi all, Marcel,</div><div>I've just spent a few hours on fixing my own bug in HDF5 FFI callbacks.</div><div><br></div><div>That's expected, writing the callback is currently like writing assembler!</div><div>We must know:</div><div>- where we should pick argument depending on its type and rank</div><div>  is it serialized in the int registers array, float registers array or on stack?<div>- in which order are those arrays passed in? (this may vary with arch)<br></div><div>  and how many arguments do I need to deserialize my specific signature?</div><div>  just intRegs, or stackp, or floatRegs?<br><div>- at which offset should we pick each parameter?</div></div></div><div>- what if it is a struct passed by value?</div><div>- how a signedLongLong is passed on 32bits ABIs?</div><div><div><br></div><div>Beside, we support 4 different ABI and several calling conventions! Ouch!</div><div><br></div></div><div>Since I'm normally bad like most of us for this task (supernatural powers apart), we definitely need to assist the poor humans and have those wrapper auto-generated!</div><div><br></div><div>My 2¢, thanks in advance for generously putting the missing 999,999.98$.<br></div><div>  <br></div></div>