2001-02-06 07:24:00 -08:00
|
|
|
Release notes on the MS Windows ports of Objective Caml
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
2006-10-18 02:29:21 -07:00
|
|
|
There are no less than four ports of Objective Caml for MS Windows available:
|
2002-07-22 01:19:50 -07:00
|
|
|
- a native Win32 port, built with the Microsoft development tools;
|
2003-09-29 02:42:07 -07:00
|
|
|
- a native Win32 port, built with the Cygwin/MinGW development tools;
|
2001-02-06 07:24:00 -08:00
|
|
|
- a port consisting of the Unix sources compiled under the Cygwin
|
2006-10-18 02:29:21 -07:00
|
|
|
Unix-like environment for Windows;
|
|
|
|
- a native Win64 port (64-bit Windows), built with the Microsoft
|
|
|
|
development tools.
|
2001-02-06 07:24:00 -08:00
|
|
|
|
2002-06-07 07:17:34 -07:00
|
|
|
Here is a summary of the main differences between these ports:
|
2001-02-06 07:24:00 -08:00
|
|
|
|
2002-07-22 01:19:50 -07:00
|
|
|
Native MS Native MinGW Cygwin
|
2006-10-18 02:29:21 -07:00
|
|
|
|
|
|
|
64 bits? Win32 or Win64 Win32 only Win32 only
|
|
|
|
|
2002-06-07 07:17:34 -07:00
|
|
|
Third-party software required
|
2002-07-22 01:19:50 -07:00
|
|
|
- for base bytecode system none none none
|
2003-09-29 02:42:07 -07:00
|
|
|
- for ocamlc -custom MSVC Cygwin Cygwin
|
|
|
|
- for native-code generation MSVC+MASM Cygwin Cygwin
|
2001-02-06 07:24:00 -08:00
|
|
|
|
2002-07-22 01:19:50 -07:00
|
|
|
Speed of bytecode interpreter 70% 100% 100%
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2002-07-22 01:19:50 -07:00
|
|
|
Replay debugger no no yes
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2002-07-22 01:19:50 -07:00
|
|
|
The Unix library partial partial full
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2003-09-29 02:42:07 -07:00
|
|
|
The Threads library yes yes yes
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2002-07-22 01:19:50 -07:00
|
|
|
The Graphics library yes yes no
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2002-06-20 09:08:46 -07:00
|
|
|
Restrictions on generated executables? none none yes (*)
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2002-06-20 09:08:46 -07:00
|
|
|
(*) Cygwin-generated .exe files refer to a DLL that is distributed under
|
|
|
|
the GPL. Thus, these .exe files can only be distributed under a license
|
2003-09-29 02:42:07 -07:00
|
|
|
that is compatible with the GPL. Executables generated by MSVC or by
|
2002-06-20 09:08:46 -07:00
|
|
|
MinGW have no such restrictions.
|
2001-02-06 07:24:00 -08:00
|
|
|
|
2002-06-20 09:08:46 -07:00
|
|
|
The remainder of this document gives more information on each port.
|
2001-02-06 07:24:00 -08:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
2002-06-07 07:17:34 -07:00
|
|
|
The native Win32 port built with Microsoft Visual C
|
|
|
|
---------------------------------------------------
|
1996-02-25 10:00:26 -08:00
|
|
|
|
|
|
|
REQUIREMENTS:
|
|
|
|
|
2002-07-26 04:30:57 -07:00
|
|
|
This port runs under MS Windows NT, 2000 and XP.
|
2006-09-20 04:14:37 -07:00
|
|
|
Windows 95, 98 and ME are no longer supported.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
The base bytecode system (ocamlc, ocaml, ocamllex, ocamlyacc, ...)
|
|
|
|
runs without any additional tools.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2001-08-28 07:47:48 -07:00
|
|
|
Statically linking Caml bytecode with C code (ocamlc -custom) requires the
|
2006-09-20 04:14:37 -07:00
|
|
|
Microsoft Visual C++ compiler (items [1] and [2] in the section
|
|
|
|
"third-party software" below). Dynamic loading of DLLs is supported
|
|
|
|
out of the box, without additional software.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2006-09-20 04:14:37 -07:00
|
|
|
The native-code compiler (ocamlopt) requires Visual C++ (items [1], [2])
|
|
|
|
and the Microsoft assembler MASM (item [3]).
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2006-09-20 04:14:37 -07:00
|
|
|
The LablTk GUI requires Tcl/Tk 8.3 (item [4]).
|
1997-10-24 08:49:12 -07:00
|
|
|
|
1996-02-25 10:00:26 -08:00
|
|
|
|
|
|
|
INSTALLATION:
|
|
|
|
|
1999-11-26 00:57:14 -08:00
|
|
|
The binary distribution is a self-installing executable archive.
|
|
|
|
Just run it and it should install OCaml automatically.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2002-07-23 06:39:34 -07:00
|
|
|
To run programs that use the LablTK GUI, the directory where the
|
|
|
|
DLLs tk83.dll and tcl83.dll were installed (by the Tcl/Tk
|
|
|
|
installer) must be added to the PATH environment variable.
|
|
|
|
|
|
|
|
To compile programs that use the LablTK GUI, the directory where the
|
|
|
|
libraries tk83.lib and tcl83.lib were installed (by the Tcl/Tk
|
|
|
|
installer) must be added to the library search path in the LIB
|
|
|
|
environment variable. E.g. if Tcl/Tk was installed in C:\tcl, add
|
|
|
|
"C:\tcl\lib" to the LIB environment variable.
|
2001-02-06 07:24:00 -08:00
|
|
|
|
2002-07-26 04:30:57 -07:00
|
|
|
|
2006-09-20 04:14:37 -07:00
|
|
|
THIRD-PARTY SOFTWARE:
|
|
|
|
|
2006-10-18 02:29:21 -07:00
|
|
|
[1] Visual C++ version 2005, 2003, or 6.
|
|
|
|
We use Visual C++ 2005 Express Edition, freely downloadably
|
|
|
|
from http://www.microsoft.com.
|
2006-09-20 04:14:37 -07:00
|
|
|
|
|
|
|
[2] Windows header files and development libraries. We found them in
|
|
|
|
the Microsoft Windows Server 2003 SP1 Platform SDK, which can
|
|
|
|
be downloaded for free from http://www.microsoft.com/.
|
|
|
|
|
|
|
|
[3] MASM version 6.11 or later. MASM can be
|
|
|
|
downloaded for free from Microsoft's Web site; for directions, see
|
|
|
|
http://users.easystreet.com/jkirwan/new/pctools.html.
|
|
|
|
|
|
|
|
[4] TCL/TK version 8.3. Windows binaries are available from
|
|
|
|
http://prdownloads.sourceforge.net/tcl/tcl832.exe.
|
|
|
|
|
|
|
|
|
1996-02-25 10:00:26 -08:00
|
|
|
RECOMPILATION FROM THE SOURCES:
|
|
|
|
|
|
|
|
The command-line tools can be recompiled from the Unix source
|
1996-04-30 07:53:58 -07:00
|
|
|
distribution (ocaml-X.YZ.tar.gz), which also contains the files modified
|
1996-02-25 10:00:26 -08:00
|
|
|
for Windows.
|
|
|
|
|
2001-08-28 07:47:48 -07:00
|
|
|
You will need the following software components to perform the recompilation:
|
2006-09-20 04:14:37 -07:00
|
|
|
- Windows NT, 2000, or XP.
|
|
|
|
- Items [1], [2], [3] and [4] from the list of recommended software above.
|
|
|
|
- The Cygwin port of GNU tools, available from http://www.cygwin.com/
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2003-09-29 02:42:07 -07:00
|
|
|
Remember to add the directory where the libraries tk83.lib and
|
|
|
|
tcl83.lib were installed (by the Tcl/Tk installer) to the LIB variable
|
|
|
|
(library search path).
|
|
|
|
|
2002-06-07 07:17:34 -07:00
|
|
|
To recompile, start a Cygwin shell and change to the top-level
|
|
|
|
directory of the OCaml distribution. Then, do
|
|
|
|
|
2002-07-23 07:12:03 -07:00
|
|
|
cp config/m-nt.h config/m.h
|
|
|
|
cp config/s-nt.h config/s.h
|
|
|
|
cp config/Makefile.msvc config/Makefile
|
1999-10-19 09:37:30 -07:00
|
|
|
|
2002-06-20 09:08:46 -07:00
|
|
|
Then, edit config/Makefile as needed, following the comments in this file.
|
|
|
|
Normally, the only variables that need to be changed are
|
2002-07-23 07:12:03 -07:00
|
|
|
PREFIX where to install everything
|
|
|
|
TK_ROOT where TCL/TK was installed
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2002-06-07 07:17:34 -07:00
|
|
|
Finally, use "make -f Makefile.nt" to build the system, e.g.
|
|
|
|
|
|
|
|
make -f Makefile.nt world
|
|
|
|
make -f Makefile.nt bootstrap
|
|
|
|
make -f Makefile.nt opt
|
2006-09-20 04:14:37 -07:00
|
|
|
make -f Makefile.nt opt.opt
|
2002-06-07 07:17:34 -07:00
|
|
|
make -f Makefile.nt install
|
|
|
|
|
|
|
|
|
|
|
|
NOTES:
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2002-06-20 09:08:46 -07:00
|
|
|
* The VC++ compiler does not implement "computed gotos", and therefore
|
2002-07-22 01:19:50 -07:00
|
|
|
generates inefficient code for byterun/interp.c. Consequently, the
|
|
|
|
performance of bytecode programs is about 2/3 of that obtained under
|
2002-06-07 07:17:34 -07:00
|
|
|
Unix/GCC or Cygwin or Mingw on similar hardware.
|
1996-10-25 06:38:55 -07:00
|
|
|
|
2001-12-03 02:13:26 -08:00
|
|
|
* Libraries available in this port: "num", "str", "threads", "graphics",
|
2001-02-06 07:24:00 -08:00
|
|
|
"labltk", and large parts of "unix".
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2002-06-07 07:17:34 -07:00
|
|
|
* The replay debugger is not supported.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
|
|
|
CREDITS:
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
The initial port of Caml Special Light (the ancestor of Objective Caml)
|
|
|
|
to Windows NT was done by Kevin Gallo at Microsoft Research, who
|
|
|
|
kindly contributed his changes to the Caml project.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
2004-06-17 00:48:05 -07:00
|
|
|
The graphical user interface for the toplevel was initially developed
|
|
|
|
by Jacob Navia, then significantly improved by Christopher A. Watford.
|
2002-06-07 07:17:34 -07:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
The native Win32 port built with Mingw
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
REQUIREMENTS:
|
|
|
|
|
2002-07-26 04:30:57 -07:00
|
|
|
This port runs under MS Windows NT, 2000 and XP.
|
|
|
|
Windows 95, 98 and ME are also supported, but less reliably.
|
2002-06-07 07:17:34 -07:00
|
|
|
|
|
|
|
The base bytecode system (ocamlc, ocaml, ocamllex, ocamlyacc, ...)
|
|
|
|
runs without any additional tools.
|
|
|
|
|
|
|
|
The native-code compiler (ocamlopt), as well as static linking of
|
2003-09-29 02:42:07 -07:00
|
|
|
Caml bytecode with C code (ocamlc -custom), require
|
|
|
|
the Cygwin development tools, available at
|
2006-09-20 04:14:37 -07:00
|
|
|
http://www.cygwin.com/
|
|
|
|
You will need to install at least the following Cygwin packages (use
|
|
|
|
the Setup tool from Cygwin):
|
2005-10-13 05:58:20 -07:00
|
|
|
binutils, gcc-core, gcc-mingw-core, mingw-runtime, w32-api.
|
|
|
|
|
|
|
|
Do *not* install the Mingw/MSYS development tools from www.mingw.org:
|
|
|
|
these are not compatible with this Caml port (@responsefile not
|
|
|
|
recognized on the command line).
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2002-06-20 09:08:46 -07:00
|
|
|
The LablTk GUI requires Tcl/Tk 8.3. Windows binaries are
|
|
|
|
available from http://prdownloads.sourceforge.net/tcl/tcl832.exe.
|
2002-06-07 07:17:34 -07:00
|
|
|
|
|
|
|
|
|
|
|
INSTALLATION:
|
|
|
|
|
2004-07-13 05:19:15 -07:00
|
|
|
The binary distribution is a self-installing executable archive.
|
|
|
|
Just run it and it should install OCaml automatically.
|
|
|
|
|
|
|
|
To run programs that use the LablTK GUI, the directory where the
|
|
|
|
DLLs tk83.dll and tcl83.dll were installed (by the Tcl/Tk
|
|
|
|
installer) must be added to the PATH environment variable.
|
|
|
|
|
|
|
|
To compile programs that use the LablTK GUI, the directory where the
|
|
|
|
libraries tk83.lib and tcl83.lib were installed (by the Tcl/Tk
|
|
|
|
installer) must be added to the library search path in the LIB
|
|
|
|
environment variable. E.g. if Tcl/Tk was installed in C:\tcl, add
|
|
|
|
"C:\tcl\lib" to the LIB environment variable.
|
2002-06-07 07:17:34 -07:00
|
|
|
|
|
|
|
|
|
|
|
RECOMPILATION FROM THE SOURCES:
|
|
|
|
|
|
|
|
You will need the following software components to perform the recompilation:
|
2006-09-20 04:14:37 -07:00
|
|
|
- Windows NT, 2000, or XP.
|
2002-06-07 07:17:34 -07:00
|
|
|
- Cygwin: http://sourceware.cygnus.com/cygwin/
|
2002-06-20 09:08:46 -07:00
|
|
|
- TCL/TK version 8.3 (see above).
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2004-02-14 09:03:35 -08:00
|
|
|
Do *not* install the standalone distribution of MinGW, nor the
|
|
|
|
companion MSYS tools: these have problems with long command lines.
|
|
|
|
Instead, use the version of MinGW that is installed along with Cygwin.
|
|
|
|
|
2002-06-07 07:17:34 -07:00
|
|
|
Start a Cygwin shell and unpack the source distribution
|
|
|
|
(ocaml-X.YZ.tar.gz) with "tar xzf". Change to the top-level
|
|
|
|
directory of the OCaml distribution. Then, do
|
|
|
|
|
2002-07-23 07:12:03 -07:00
|
|
|
cp config/m-nt.h config/m.h
|
|
|
|
cp config/s-nt.h config/s.h
|
|
|
|
cp config/Makefile.mingw config/Makefile
|
2002-06-07 07:17:34 -07:00
|
|
|
|
2002-06-20 09:08:46 -07:00
|
|
|
Then, edit config/Makefile as needed, following the comments in this file.
|
|
|
|
Normally, the only variables that need to be changed are
|
2002-07-23 07:12:03 -07:00
|
|
|
PREFIX where to install everything
|
|
|
|
TK_ROOT where TCL/TK was installed
|
2002-06-07 07:17:34 -07:00
|
|
|
|
|
|
|
Finally, use "make -f Makefile.nt" to build the system, e.g.
|
|
|
|
|
|
|
|
make -f Makefile.nt world
|
|
|
|
make -f Makefile.nt bootstrap
|
|
|
|
make -f Makefile.nt opt
|
|
|
|
make -f Makefile.nt opt.opt
|
2002-06-20 09:08:46 -07:00
|
|
|
make -f Makefile.nt install
|
2002-06-07 07:17:34 -07:00
|
|
|
|
|
|
|
|
|
|
|
NOTES:
|
|
|
|
|
|
|
|
* Libraries available in this port: "num", "str", "threads", "graphics",
|
|
|
|
"labltk", and large parts of "unix".
|
|
|
|
|
|
|
|
* The replay debugger is not supported.
|
2002-06-20 09:08:46 -07:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
The Cygwin port of Objective Caml
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
REQUIREMENTS:
|
|
|
|
|
|
|
|
This port requires the Cygwin environment from Cygnus/RedHat, which
|
|
|
|
is freely available at:
|
2006-09-20 04:14:37 -07:00
|
|
|
http://www.cygwin.com/
|
2002-06-20 09:08:46 -07:00
|
|
|
|
2002-07-26 04:30:57 -07:00
|
|
|
This port runs under all versions of MS Windows supported by Cygwin.
|
2002-06-20 09:08:46 -07:00
|
|
|
|
|
|
|
|
|
|
|
INSTALLATION:
|
|
|
|
|
2006-09-20 04:14:37 -07:00
|
|
|
We do not distribute binaries for this port, but they can be found
|
|
|
|
in the Cygwin distribution (use the Setup tool from Cygwin and select
|
|
|
|
the OCaml packages). Alternatively, recompile from the source distribution.
|
2002-06-20 09:08:46 -07:00
|
|
|
|
|
|
|
|
|
|
|
RECOMPILATION FROM THE SOURCES:
|
|
|
|
|
|
|
|
Just follow the instructions for Unix machines given in the file INSTALL.
|
|
|
|
|
|
|
|
|
|
|
|
NOTES:
|
|
|
|
|
2003-09-29 02:42:07 -07:00
|
|
|
The libraries available in this port are "num", "str", "threads",
|
2004-07-13 05:19:15 -07:00
|
|
|
"unix" and "labltk". "graph" is not available.
|
2002-06-20 09:08:46 -07:00
|
|
|
The replay debugger is supported.
|
|
|
|
|
2006-10-18 02:29:21 -07:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
The native Win64 port built with the Microsoft Platform SDK compilers
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
|
|
|
REQUIREMENTS:
|
|
|
|
|
|
|
|
This port runs under MS Windows XP 64 and Server 64 on Intel64/AMD64 machines.
|
|
|
|
|
|
|
|
The base bytecode system (ocamlc, ocaml, ocamllex, ocamlyacc, ...)
|
|
|
|
runs without any additional tools.
|
|
|
|
|
|
|
|
Statically linking Caml bytecode with C code (ocamlc -custom) requires the
|
|
|
|
Microsoft Platform SDK compiler (item [1] in the section
|
|
|
|
"third-party software" below). Dynamic loading of DLLs is supported
|
|
|
|
out of the box, without additional software.
|
|
|
|
|
|
|
|
The native-code compiler (ocamlopt) requires the Microsoft compiler
|
|
|
|
and the Microsoft assembler MASM64 (item [1]).
|
|
|
|
|
|
|
|
|
|
|
|
INSTALLATION:
|
|
|
|
|
|
|
|
There is no binary distribution yet. Please compile from sources as
|
|
|
|
described below.
|
|
|
|
|
|
|
|
|
|
|
|
THIRD-PARTY SOFTWARE:
|
|
|
|
|
|
|
|
[1] Microsoft Windows Server 2003 R2 Platform SDK for AMD64 (PSDK-amd64.exe).
|
|
|
|
Can be downloaded for free from http://www.microsoft.com/.
|
|
|
|
Includes all we need, namely a C compiler, the masm64 assembler,
|
|
|
|
Windows libraries and include files.
|
|
|
|
|
|
|
|
|
|
|
|
RECOMPILATION FROM THE SOURCES:
|
|
|
|
|
|
|
|
The command-line tools can be recompiled from the Unix source
|
|
|
|
distribution (ocaml-X.YZ.tar.gz), which also contains the files modified
|
|
|
|
for Windows.
|
|
|
|
|
|
|
|
You will need the following software components to perform the recompilation:
|
|
|
|
- Windows XP 64 or Server 64.
|
|
|
|
- The Platform SDK (item [1] from the list of recommended software above).
|
|
|
|
- The Cygwin port of GNU tools, available from http://www.cygwin.com/
|
|
|
|
|
|
|
|
To recompile, start a Cygwin shell and change to the top-level
|
|
|
|
directory of the OCaml distribution. Then, do
|
|
|
|
|
|
|
|
cp config/m-nt.h config/m.h
|
|
|
|
cp config/s-nt.h config/s.h
|
|
|
|
cp config/Makefile.msvc64 config/Makefile
|
|
|
|
|
|
|
|
Then, edit config/Makefile as needed, following the comments in this file.
|
|
|
|
Normally, the only variable that need to be changed is
|
|
|
|
PREFIX where to install everything
|
|
|
|
|
|
|
|
If, for whatever reason, you want to use the Microsoft Visual C++ 2005
|
|
|
|
compiler for AMD64 instead of the Platform SDK compiler, replace the line
|
|
|
|
EXTRALIBS=bufferoverflowu.lib
|
|
|
|
by
|
|
|
|
EXTRALIBS=
|
|
|
|
|
|
|
|
Finally, use "make -f Makefile.nt" to build the system, e.g.
|
|
|
|
|
|
|
|
make -f Makefile.nt world
|
|
|
|
make -f Makefile.nt bootstrap
|
|
|
|
make -f Makefile.nt opt
|
|
|
|
make -f Makefile.nt opt.opt
|
|
|
|
make -f Makefile.nt install
|
|
|
|
|
|
|
|
|
|
|
|
NOTES:
|
|
|
|
|
|
|
|
* Libraries available in this port: "num", "str", "threads", "graphics",
|
|
|
|
and large parts of "unix".
|
|
|
|
|
|
|
|
* The replay debugger and the graphical browser are not supported.
|
|
|
|
|