src/Pure/ML-Systems/polyml.ML
author wenzelm
Sun, 31 May 2009 14:51:21 +0200
changeset 31312 1c00e4ff3c99
parent 30672 beaadd5af500
child 31313 97800f7e80b4
permissions -rw-r--r--
more modular setup of runtime compilation;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2341
e154da40ef00 Compatibility file for Poly/ML (versions 2.x, 3.x).
wenzelm
parents:
diff changeset
     1
(*  Title:      Pure/ML-Systems/polyml.ML
e154da40ef00 Compatibility file for Poly/ML (versions 2.x, 3.x).
wenzelm
parents:
diff changeset
     2
31312
1c00e4ff3c99 more modular setup of runtime compilation;
wenzelm
parents: 30672
diff changeset
     3
Compatibility wrapper for Poly/ML 5.2 and 5.2.1.
2341
e154da40ef00 Compatibility file for Poly/ML (versions 2.x, 3.x).
wenzelm
parents:
diff changeset
     4
*)
e154da40ef00 Compatibility file for Poly/ML (versions 2.x, 3.x).
wenzelm
parents:
diff changeset
     5
28152
c1277547d59f *** empty log message ***
wenzelm
parents: 28125
diff changeset
     6
open Thread;
30672
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
     7
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
     8
structure ML_Name_Space =
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
     9
struct
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    10
  open PolyML.NameSpace;
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    11
  type T = PolyML.NameSpace.nameSpace;
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    12
  val global = PolyML.globalNameSpace;
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    13
end;
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    14
26215
94d32a7cd0fb rearrangements to make latest Poly/ML the default, not old 4.x;
wenzelm
parents: 26084
diff changeset
    15
use "ML-Systems/polyml_common.ML";
28676
78688a5fafc2 multithreading support only for polyml-5.2.1 or later;
wenzelm
parents: 28268
diff changeset
    16
28796
56cb4130177a multithreading support for polyml-5.2 actually disabled -- as advertized;
wenzelm
parents: 28676
diff changeset
    17
if ml_system = "polyml-5.2"
56cb4130177a multithreading support for polyml-5.2 actually disabled -- as advertized;
wenzelm
parents: 28676
diff changeset
    18
then use "ML-Systems/thread_dummy.ML"
28676
78688a5fafc2 multithreading support only for polyml-5.2.1 or later;
wenzelm
parents: 28268
diff changeset
    19
else use "ML-Systems/multithreading_polyml.ML";
26215
94d32a7cd0fb rearrangements to make latest Poly/ML the default, not old 4.x;
wenzelm
parents: 26084
diff changeset
    20
94d32a7cd0fb rearrangements to make latest Poly/ML the default, not old 4.x;
wenzelm
parents: 26084
diff changeset
    21
val pointer_eq = PolyML.pointerEq;
23921
947152add153 added compatibility file for ML systems without multithreading;
wenzelm
parents: 23826
diff changeset
    22
29638
1f8f3d26a2cf added share_common_data -- reduces heap space, but takes long;
wenzelm
parents: 29564
diff changeset
    23
fun share_common_data () = PolyML.shareCommonData PolyML.rootFunction;
1f8f3d26a2cf added share_common_data -- reduces heap space, but takes long;
wenzelm
parents: 29564
diff changeset
    24
31312
1c00e4ff3c99 more modular setup of runtime compilation;
wenzelm
parents: 30672
diff changeset
    25
use "ML-Systems/compiler_polyml-5.2.ML";
30627
fb9e73c01603 added polyml_pp.ML: toplevel pretty printing for Poly/ML 4.x and 5.x before 5.3;
wenzelm
parents: 29638
diff changeset
    26
use "ML-Systems/polyml_pp.ML";
fb9e73c01603 added polyml_pp.ML: toplevel pretty printing for Poly/ML 4.x and 5.x before 5.3;
wenzelm
parents: 29638
diff changeset
    27