Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/cm/bootstrap/cmb-slave-stub.sml
ViewVC logotype

View of /sml/trunk/src/cm/bootstrap/cmb-slave-stub.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 465 - (download) (annotate)
Tue Nov 9 09:08:54 1999 UTC (20 years, 11 months ago) by blume
File size: 774 byte(s)
dummy-server fixed; comments; cosmetics
 * This is a stub providing "slave" functionality for CMB.
 * (We use dynamic linking technology to avoid loading the target compiler
 *  on the slave side unless it is really needed.)
 * (C) 1999 Lucent Technologies, Bell Laboratories
 * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
structure CMBSlave = struct
	val loaded = ref StringSet.empty (* remember what we already have *)
	fun slave load arch s = let
	    val lib = arch ^ ".cm" (* eg. sparc-unix -> sparc-unix.cm *)
	    if StringSet.member (!loaded, lib) then ()
	    else if load lib then loaded := StringSet.add (!loaded, lib)
	    else  raise Fail (concat ["dynamic linkage for CMB slave ",
				      arch, " failed"]);
	    CMBSlaveHook.slave arch s

ViewVC Help
Powered by ViewVC 1.0.0