[MLton] MLton broken FFI on AMD64???

Wesley W. Terpstra wesley at terpstra.ca
Fri Feb 4 07:19:15 PST 2011


On Fri, Feb 4, 2011 at 4:01 PM, Matthew Fluet <matthew.fluet at gmail.com>wrote:

> > ... either we need to add another tag to imports like:
> > _import "printf" stdarg : ... ;
> > ... or we should just always set rax for every FFI call on AMD64?
>
> Did you mean a "varargs" attribute?  That is, I would expect "stdargs"
> (or "fixargs"?) to be the silent default.
>

The new varargs in C is called stdarg. A very poor name, I agree.


> It seems that setting rax for every FFI call on AMD64 would be the
> simplest solution.
>

I agree, if only because MLton64 FFI calls are already so slow. ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mlton.org/pipermail/mlton/attachments/20110204/bc3c56ae/attachment.html


More information about the MLton mailing list