<div class="gmail_quote">On Fri, Feb 4, 2011 at 4:01 PM, Matthew Fluet <span dir="ltr"><<a href="mailto:matthew.fluet@gmail.com">matthew.fluet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">> ... either we need to add another tag to imports like:<br>
> _import "printf" stdarg : ... ;<br>
> ... or we should just always set rax for every FFI call on AMD64?<br>
<br>
</div>Did you mean a "varargs" attribute? That is, I would expect "stdargs"<br>
(or "fixargs"?) to be the silent default.<br></blockquote><div><br>The new varargs in C is called stdarg. A very poor name, I agree.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It seems that setting rax for every FFI call on AMD64 would be the<br>
simplest solution.<br>
</blockquote></div><br>I agree, if only because MLton64 FFI calls are already so slow. ;)<br><br>