<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On May 26, 2020, at 6:51 PM, Todd Blanchard <tblanchard@mac.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span><meta http-equiv="Content-Type" content="text/html; charset=us-ascii">I was hoping getting a solid libCLANG interface would make this easy.<div class=""><br class=""></div><div class="">But I haven't been able to get past a problem with some functions returning structs by value and the FFI failing to handle this.</div></span></div></blockquote><div><br></div>Bugs were fixed on x86_64 recently and ARMv8 less recently.<div><br></div><div>There really isn’t any advantage in using a different FFI implementation.  We have the capability of producing a correct FFI.  What we need is good bug reports and help.  What we *dont* need is a different FFI, incoherent or split community effort, etc.</div><div><br><blockquote type="cite"><div dir="ltr"><span><div class=""><br class=""></div><div class="">Might be fixed now.  Worth a look.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 25, 2020, at 1:50 PM, tim Rowledge <<a href="mailto:tim@rowledge.org" class="">tim@rowledge.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">VW has a parser of C header files that is I suppose the right way to do this sort of thing - you parse the headers (warning - I seem to recall parsing 'windows.h' taking several days in the original VW ddl product) and build proxies of all the types/structs/etc.  Is that a practical way to do it? Hell of a lot of work to do, certainly.</span></div></blockquote></div><br class=""></div></span></div></blockquote></div></body></html>