calling SML from C

Jagannathan, Suresh Suresh.Jagannathan@storagenetworks.com
Mon, 20 Aug 2001 17:39:26 -0400


As a related point, when we were working on our Java compiler, we faced a
similar issue.  We were able to hack up a solution that did not involve
forking
multiple Java threads.  Instead, we implemented special Java stubs that
handled
returns back from C and allowed us to reuse the Java stack when C called a 
Java function.  The implementation also handled exceptions that were raised
by
a Java procedure whose handler was another Java procedure that sat below a 
C call(s).  I'll lookup the implementation tonight and describe the stubs we
used
if you guys are interested.

-- Suresh