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/trunk/src/cm/main/specific-symval-fn.sml
ViewVC logotype

Annotation of /sml/trunk/src/cm/main/specific-symval-fn.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 337 - (view) (download)

1 : blume 337 (*
2 :     * Building a host/OS-specific environments for CM "preprocessor" variables.
3 :     *
4 :     * (C) 1999 Lucent Technologies, Bell Laboratories
5 :     *
6 :     * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
7 :     *)
8 : blume 336 functor SpecificSymValFn (structure MachDepVC: MACHDEP_VC
9 :     val os: SMLofNJ.SysInfo.os_kind) =
10 :     struct
11 :     local
12 :     val (arch, extra_arch, big, size) =
13 :     case MachDepVC.architecture of
14 :     "sparc" => ("SPARC", NONE, true, 32)
15 :     | "alpha32" => ("ALPHA", NONE, false, 32)
16 :     | "alpha32x" => ("ALPHA", SOME "ALHPA_OLD", false, 32)
17 :     | "mipsel" => ("MIPS", NONE, false, 32)
18 :     | "mipseb" => ("MIPS", NONE, true, 32)
19 :     | "x86" => ("X86", NONE, false, 32)
20 :     | "hppa" => ("HPPA", NONE, false, 32)
21 :     | "rs6000" => ("RS6000", NONE, false, 32)
22 :     | "ppc" => ("PPC", NONE, false, 32)
23 :     | arch => GenericVC.ErrorMsg.impossible
24 :     ("unknown architecture: " ^ arch)
25 :     in
26 :     val env =
27 :     SymVal.default { arch = arch,
28 :     extra_arch = extra_arch,
29 :     big = big,
30 :     size = size,
31 :     os = os,
32 :     version = #version_id GenericVC.version }
33 :     end
34 :     end

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