calling SML from C

Jagannathan, Suresh
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
multiple Java threads.  Instead, we implemented special Java stubs that
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
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
if you guys are interested.

-- Suresh