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

SCM Repository

[smlnj] Annotation of /sml/branches/SMLNJ/src/compiler/Retarget/README
ViewVC logotype

Annotation of /sml/branches/SMLNJ/src/compiler/Retarget/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 143 - (view) (download)

1 : monnier 111 New setup for "RETARGET":
2 :    
3 :     To support cross-compilation for <arch>-<os>, the following files must be
4 :     present in this directory:
5 :    
6 :     1. <arch>-<os>.sml, containing the following SML code:
7 :    
8 :     structure <Arch><OS>CMB =
9 :     CMBFun (structure TargetCompiler = <Arch>VisComp
10 :     val version = "batch (target: <arch>-<os>)"
11 :     val targetosn = "<os>")
12 :    
13 :     2. <arch>-<os>.cm, containing the following CM group description:
14 :    
15 :     Group
16 :     structure <Arch><OS>CMB
17 :     is
18 :     ../viscomp-lib.cm
19 :     ../../cm/cm-lib.cm
20 :     <arch>-<os>.sml
21 :    
22 :    
23 :     Furthermore, the new combination should be registered in all.cm.
24 :    
25 :     To load the cross-compiler for <arch>-<os>, one must be in the
26 :     compiler source directory, run SML/NJ and type
27 :    
28 :     CMB.retarget { cpu = "<arch>", os = "<os>" };
29 :    
30 :     at the interactive prompt.
31 :    
32 : monnier 143 (Note that this command is more or less a shorthand for
33 : monnier 111 CMB.CM.make' ("Retarget/<arch>-<os>.cm", false);
34 : monnier 143 In other words, cross-compilers are ordinary CM modules. However, some
35 :     internal trickery is done to avoid using the "wrong" pervasive environment...)
36 : monnier 111
37 :     ---------------
38 :     M.Blume (5/1998)

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