[MLton] MLton broken FFI on AMD64???

Anders Petersson demitar at gmail.com
Fri Feb 4 00:53:47 PST 2011


On Fri, Feb 4, 2011 at 9:32 AM, Wesley W. Terpstra <wesley at terpstra.ca>wrote:

> However, the segfault persists. If you replace "printf" with "test":
> void test(const char* s, int x) {
>   printf(s, x);
> }
> ... it works.
>

Yes, varargs was my first instinct.

I don't know the C ABI well enough to know what (if anything) actually
changes nor if mlton is supposed to handle it, but I am passing loads of
data through the MLton FFI on amd64 without any issues.

/Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mlton.org/pipermail/mlton/attachments/20110204/4f21495f/attachment.htm


More information about the MLton mailing list