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/compiler/Retarget/README
ViewVC logotype

View of /sml/trunk/src/compiler/Retarget/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 111 - (download) (annotate)
Fri Jun 5 19:37:29 1998 UTC (21 years, 11 months ago) by monnier
File size: 965 byte(s)
Initial revision
New setup for "RETARGET":

To support cross-compilation for <arch>-<os>, the following files must be
present in this directory:

1. <arch>-<os>.sml, containing the following SML code:

   structure <Arch><OS>CMB =
       CMBFun (structure TargetCompiler = <Arch>VisComp
	       val version = "batch (target: <arch>-<os>)"
	       val targetosn = "<os>")

2. <arch>-<os>.cm, containing the following CM group description:

  Group
	structure <Arch><OS>CMB
  is
	../viscomp-lib.cm
	../../cm/cm-lib.cm
	<arch>-<os>.sml


Furthermore, the new combination should be registered in all.cm.

To load the cross-compiler for <arch>-<os>, one must be in the
compiler source directory, run SML/NJ and type

	CMB.retarget { cpu = "<arch>", os = "<os>" };

at the interactive prompt.

(Note that this command is just a shorthand for
   CMB.CM.make' ("Retarget/<arch>-<os>.cm", false);
In other words, cross-compilers are ordinary CM modules.)

---------------
  M.Blume (5/1998)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0