Re: MLton broken FFI on AMD64???

Matthew Fluet <[email protected]>
Newsgroups gmane.comp.lang.ml.mlton.devel
Message-ID <[email protected]>
On Fri, Feb 4, 2011 at 10:01 AM, Matthew Fluet <[email protected]> wrote:
> Interestingly, it seems that MacOSX also demands that rax be set to
> the the number of floating point parameters.
>
> It seems that setting rax for every FFI call on AMD64 would be the
> simplest solution.

I committed a patch that always sets %rax to the number of XMMS
registers passed for non-win64 AMD64 platforms; since %rax is caller
save, this doesn't really affect register allocation and just incurs
an immediate->register move instruction.  That solved the issue on
Linux and MacOSX (and presumably on other Unices).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.