[MLton-devel] cvs commit: x86 codegen support for calling SML from C

Stephen Weeks MLton@mlton.org
Fri, 28 Mar 2003 21:43:15 -0800


>   After some thought and experiments, it turned out that it suffices to
>   completely embed the call to and return from SML in inline assembly in
>   the MLton_callFromC function.  The call to SML works just like in
>   main; the return from SML looks like a C call to Thread_returnFromC
>   from the SML/codegen point of view, but is implemented by putting the
>   Thread_returnFromC in the MLton_callFromC inline assembly.  

Neat!


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel