[MLton-devel] icfp?

Stephen Weeks MLton@mlton.org
Mon, 10 Feb 2003 10:41:10 -0800


> Is the profiling code really only inserted at the last minute?  I thought that
> connecting profiling to the SML source code required inserting things very
> early in the compilation process.

The Enter/Leave statements are inserted in the source.  The idea is
that these are treated as noops by all of the optimizer passes.  Then,
at the very end of the backend, the Enter/Leaves are removed and C
calls are inserted (with -profile-stack true).


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel