[MLton-user] Re: Mac OS X on Intel
   
    John Reppy
     
    jhr@cs.uchicago.edu
       
    Fri, 21 Apr 2006 07:22:52 -0500
    
    
  
I did the port of SML/NJ to the Intel Mac and the issues were mostly  
minor.
The calling convention issue is that MacOS X expects stack frames to  
be 16-byte
aligned and small structs (<= 8 bytes) are returned in registers.
The assembly code issues are in the psuedo-ops.  The Apple toolchain  
uses a
very old version of gas (dating back to the NeXT days), which doesn't
recognize some common directives.  Also, the Mach-O format has a  
different
section naming scheme.  The .text and .data directives will work, but  
anything
more complicated will have to be mapped to a different directive.
	- John