[MLton-devel] calling SML from C; reentrance

Stephen Weeks MLton@mlton.org
Fri, 16 May 2003 14:35:55 -0700


> What are the advantages of executing the function on top of the current
> stack?  I mean, once there are any thread primitives in the program, we're
> pretty well hosed for some optimizations, so whether or not we can ensure
> that only one stack exists at runtime won't make much of a difference.

The only difference is a performance issue.  Thread and stack
aollocation cost something.  Locality is probably also better with one
stack.  But it's not a big deal.


-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful, 
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel