Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 159 lines (105 sloc) 5.712 kB
cf69c17 MAJ 3.01
xleroy authored
1 Release notes on the MS Windows ports of Objective Caml
2 -------------------------------------------------------
3
4 Starting with OCaml 3.01, there are now two ports of Objective Caml
5 for MS Windows available:
6 - a native Win32 port, built with the Microsoft development tools;
7 - a port consisting of the Unix sources compiled under the Cygwin
8 Unix-like environment for Windows.
9
10 The Cygwin port requires only free software, runs faster in bytecode
11 mode, and provides a more thorough emulation of the Unix library.
12 It currently lacks the threads library and the ability to interface
13 with COM components via CamlIDL. No graphical user interface to the
14 OCaml toplevel is provided.
15
16 The native Win32 port has threads and COM support, but is slower in
17 bytecode, does not implement some of the functionality of the Unix library,
18 and requires MS Visual C++ version 6 for compilation in -custom mode
19 and in native-code mode. A simple graphical user interface to the
20 OCaml toplevel is provided.
21
22 The remainder of this document provides more information on both ports.
23
24 ------------------------------------------------------------------------------
25
26 The Cygwin port of Objective Caml
27 ---------------------------------
28
29 REQUIREMENTS:
30
31 This port requires the Cygwin environment from Cygnus/RedHat, which
32 is freely available at:
33 http://sources.redhat.com/cygwin/
34 Version 1.1 or the upcoming version 1.2 are recommended.
35
36 This port runs under all versions of MS Windows supported by Cygwin,
37 i.e. Windows 95, 98, ME, NT and 2000 on Intel IA32 machines.
38
39
40 INSTALLATION:
41
42 The binary distribution is a .tar.gz archive that unpacks in
43 usr/local/bin and usr/local/lib/ocaml/. To install, just open
44 a "bash" windows and type:
45 cd /
46 tar xvzf /full/path/to/ocaml-X.XX-cygwin.tar.gz
47
48 Make sure that /usr/local/bin is in the PATH environment variable.
49
50
51 RECOMPILATION FROM THE SOURCES:
52
53 Just follow the instructions for Unix machines given in the file INSTALL.
54
55
56 NOTES:
57
58 The libraries available in this port are "num", "str", "unix" and "labltk".
59 "graph" and "threads" are not available yet.
60
61
62 ------------------------------------------------------------------------------
63
64 The native Win32 port of Objective Caml
65 ---------------------------------------
d06f82e Blabla sur la version Windows
xleroy authored
66
67 REQUIREMENTS:
68
cf69c17 MAJ 3.01
xleroy authored
69 This port runs under MS Windows 95, 98, ME, NT and 2000 on Intel IA32
70 machines. Windows 3.1 and Windows for Workgroups are not
71 supported. Windows NT on non-Intel processors has not been tested.
d06f82e Blabla sur la version Windows
xleroy authored
72
11d8fff Renommage en Objective Caml
xleroy authored
73 The base bytecode system (ocamlc, ocaml, ocamllex, ocamlyacc, ...)
74 runs without any additional tools.
d06f82e Blabla sur la version Windows
xleroy authored
75
11d8fff Renommage en Objective Caml
xleroy authored
76 Linking Caml bytecode with C code (ocamlc -custom) requires the
f46ea68 MAJ. Description de la recompilation a partir des sources
xleroy authored
77 Microsoft Visual C++ compiler version 6.
d06f82e Blabla sur la version Windows
xleroy authored
78
ca8d02d Mentionner que MASM est gratuit
xleroy authored
79 The native-code compiler (ocamlopt) requires Visual C++ version 6
80 and the Microsoft assembler MASM version 6.11 or later.
81 MASM can be downloaded for free from Microsoft's Web site;
82 see the comp.lang.asm.x86 FAQ for directions, or
83 http://www.cs.uu.nl/wais/html/na-dir/assembly-language/x86/microsoft.html
d06f82e Blabla sur la version Windows
xleroy authored
84
d71cd06 MAJ
xleroy authored
85 The LablTk GUI requires Tcl/Tk 8.0. Windows binaries are
86 available from ftp://ftp.scriptics.com/pub/tcl/tcl8_0/tcl805.exe
f577670 configure, INSTALL: option -with-pthread
xleroy authored
87
d06f82e Blabla sur la version Windows
xleroy authored
88
89 INSTALLATION:
90
1b438f1 MAJ
xleroy authored
91 The binary distribution is a self-installing executable archive.
92 Just run it and it should install OCaml automatically.
d06f82e Blabla sur la version Windows
xleroy authored
93
94 Installing the command-line tools:
95
1b438f1 MAJ
xleroy authored
96 You must add the "bin" subdirectory of the OCaml installation directory
97 to the PATH variable, e.g.
d06f82e Blabla sur la version Windows
xleroy authored
98
11d8fff Renommage en Objective Caml
xleroy authored
99 set PATH=%PATH%;D:\lang\ocaml\bin
d06f82e Blabla sur la version Windows
xleroy authored
100
11d8fff Renommage en Objective Caml
xleroy authored
101 Running directly the tools (e.g. typing D:\lang\ocaml\bin\ocamlc)
1b438f1 MAJ
xleroy authored
102 will not work if the "bin" subdirectory is not in PATH, because ocamlc
d06f82e Blabla sur la version Windows
xleroy authored
103 and the other tools will be unable to find the Caml runtime system
11d8fff Renommage en Objective Caml
xleroy authored
104 ocamlrun.exe.
d06f82e Blabla sur la version Windows
xleroy authored
105
106 The command-line tools assume that the standard library resides in
11d8fff Renommage en Objective Caml
xleroy authored
107 C:\ocaml\lib. If you have unpacked it elsehwere, define the CAMLLIB
d06f82e Blabla sur la version Windows
xleroy authored
108 environment variable to point to the standard library directory, e.g.
109
11d8fff Renommage en Objective Caml
xleroy authored
110 set CAMLLIB=D:\lang\ocaml\lib
d06f82e Blabla sur la version Windows
xleroy authored
111
cf69c17 MAJ 3.01
xleroy authored
112 For Windows 95, 98 and ME, the OCaml installer is able to perform the
1b438f1 MAJ
xleroy authored
113 corresponding modifications to AUTOEXEC.BAT (define CAMLLIB and
cf69c17 MAJ 3.01
xleroy authored
114 append to the PATH variable). For Windows NT and 2000, you'll have to
1b438f1 MAJ
xleroy authored
115 edit the environment variables yourself.
d06f82e Blabla sur la version Windows
xleroy authored
116
cf69c17 MAJ 3.01
xleroy authored
117
d06f82e Blabla sur la version Windows
xleroy authored
118 RECOMPILATION FROM THE SOURCES:
119
120 The command-line tools can be recompiled from the Unix source
11d8fff Renommage en Objective Caml
xleroy authored
121 distribution (ocaml-X.YZ.tar.gz), which also contains the files modified
d06f82e Blabla sur la version Windows
xleroy authored
122 for Windows.
123
059a61a MAJ en vue release 2.02
xleroy authored
124 In addition to Visual C++ (version 4, 5 or 6) and MASM 6, you will
125 need the CygWin port of GNU tools, available from
126 http://sourceware.cygnus.com/cygwin/
d06f82e Blabla sur la version Windows
xleroy authored
127
f46ea68 MAJ. Description de la recompilation a partir des sources
xleroy authored
128 To recompile, first copy manually the files config/m-nt.h and config/s-nt.h
129 to config/m.h and config/s.h. Edit config/Makefile.nt as needed.
130 Then, use "nmake -f Makefile.nt" to build the system, e.g.
131
132 nmake -f Makefile.nt world
133 nmake -f Makefile.nt bootstrap
134 nmake -f Makefile.nt opt
135
370efa2 MAJ pour le debugger et autres
xleroy authored
136 The sources for the toplevel graphical user interface are not currently
137 available to the general public. Contact us if you think you need them.
d06f82e Blabla sur la version Windows
xleroy authored
138
139
140 RANDOM NOTES:
141
142 * The VC++ compiler does a poor job on byterun/interp.c. Consequently,
cf69c17 MAJ 3.01
xleroy authored
143 the performance of bytecode programs is 50-70% of that obtained under
144 Unix/GCC or Cygwin on similar hardware.
90170a2 MAJ.
xleroy authored
145
cf69c17 MAJ 3.01
xleroy authored
146 * Libraries available in this port: "num", "str", "threads", "graph",
147 "labltk", and large parts of "unix".
90170a2 MAJ.
xleroy authored
148 "graph" works only under the toplevel application.
d06f82e Blabla sur la version Windows
xleroy authored
149
150
151 CREDITS:
152
11d8fff Renommage en Objective Caml
xleroy authored
153 The initial port of Caml Special Light (the ancestor of Objective Caml)
154 to Windows NT was done by Kevin Gallo at Microsoft Research, who
155 kindly contributed his changes to the Caml project.
d06f82e Blabla sur la version Windows
xleroy authored
156
157 The graphical user interface for the toplevel is due to Jean-Marie
158 Geffroy at INRIA Rocquencourt.
Something went wrong with that request. Please try again.