[MLton] MLton broken FFI on AMD64???
Wesley W. Terpstra
wesley at terpstra.ca
Mon Feb 7 00:45:42 PST 2011
On Sat, Feb 5, 2011 at 10:31 AM, Florian Weimer <fw at deneb.enyo.de> wrote:
> > Wesley, can you confirm that this calling convention does not apply
> > to win64?
>
It does not apply.
> Its calling convention has got its own wrinkle:
>
> > For vararg or unprototyped functions, any float values must be
> > duplicated in the corresponding general-purpose register.
>
> <http://msdn.microsoft.com/en-us/library/ms235286%28v=vs.80%29.aspx>
>
That's a pain. We don't do this at the moment. I'll work out a patch which
does this for Win64 varargs, also by default.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mlton.org/pipermail/mlton/attachments/20110207/470ee022/attachment.htm
More information about the MLton
mailing list