1996-04-30 07:53:58 -07:00
|
|
|
Release notes on the MS Windows port of Objective Caml
|
1996-02-25 10:00:26 -08:00
|
|
|
----------------------------------------------------------
|
|
|
|
|
|
|
|
REQUIREMENTS:
|
|
|
|
|
|
|
|
This port runs under Windows 95 and Windows NT on Intel-based machines.
|
|
|
|
Windows 3.1 and Windows for Workgroups are not supported. Windows NT
|
|
|
|
on non-Intel processors has not been tested.
|
|
|
|
|
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
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
Linking Caml bytecode with C code (ocamlc -custom) requires the
|
1996-03-05 02:11:50 -08:00
|
|
|
Microsoft Visual C++ compiler.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
The native-code compiler (ocamlopt) requires Visual C++ and the
|
1996-03-11 05:58:14 -08:00
|
|
|
Microsoft assembler MASM version 6.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
|
|
|
|
|
|
|
INSTALLATION:
|
|
|
|
|
1996-03-05 02:11:50 -08:00
|
|
|
The binary distribution consists in a .zip archive file. This .zip
|
1996-02-25 10:00:26 -08:00
|
|
|
contains long filenames and cannot therefore be unpacked with pkunzip
|
|
|
|
version 2. Use either Winzip (shareware) or the NT/95 version of unzip
|
|
|
|
(freeware):
|
|
|
|
ftp://ftp.winsite.com/pub/pc/winnt/misc/wznt56.exe
|
|
|
|
ftp://ftp.uu.net/pub/archiving/zip/WIN32/unz512xN.exe
|
|
|
|
|
|
|
|
Unzipping the distribution creates (among others) the following
|
|
|
|
directories and files:
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocaml\ocamlwin.exe The toplevel application
|
|
|
|
ocaml\ocamlwin.ini Its configuration file
|
|
|
|
ocaml\bin\ The command-line compilers and tools
|
|
|
|
ocaml\lib\ The standard library files
|
1996-02-25 10:00:26 -08:00
|
|
|
|
|
|
|
Installing the toplevel application:
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
Copy the file ocaml\ocamlwin.ini to the Windows system directory
|
1996-03-18 04:07:01 -08:00
|
|
|
(e.g. C:\windows). This file assumes that the Caml distribution
|
1996-04-30 07:53:58 -07:00
|
|
|
resides in C:\ocaml. If this is not the case, edit the file ocamlwin.ini
|
1996-02-25 10:00:26 -08:00
|
|
|
and change the line that says
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
CmdLine=ocamlrun c:\ocaml\bin\ocaml.exe -I c:\ocaml\lib
|
1996-02-25 10:00:26 -08:00
|
|
|
to
|
1996-04-30 07:53:58 -07:00
|
|
|
CmdLine=ocamlrun <caml_dir>\bin\ocaml.exe -I <caml_dir>\lib
|
1996-02-25 10:00:26 -08:00
|
|
|
e.g.
|
1996-04-30 07:53:58 -07:00
|
|
|
CmdLine=ocamlrun d:\lang\ocaml\bin\ocaml.exe -I d:\lang\ocaml\lib
|
1996-02-25 10:00:26 -08:00
|
|
|
|
|
|
|
Installing the command-line tools:
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
You must add the ocaml\bin subdirectory to the PATH variable, e.g.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
set PATH=%PATH%;D:\lang\ocaml\bin
|
1996-02-25 10:00:26 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
Running directly the tools (e.g. typing D:\lang\ocaml\bin\ocamlc)
|
|
|
|
will not work if the ocaml\bin directory is not in PATH, because ocamlc
|
1996-02-25 10:00:26 -08:00
|
|
|
and the other tools will be unable to find the Caml runtime system
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamlrun.exe.
|
1996-02-25 10:00:26 -08:00
|
|
|
|
|
|
|
The command-line tools assume that the standard library resides in
|
1996-04-30 07:53:58 -07:00
|
|
|
C:\ocaml\lib. If you have unpacked it elsehwere, define the CAMLLIB
|
1996-02-25 10:00:26 -08:00
|
|
|
environment variable to point to the standard library directory, e.g.
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
set CAMLLIB=D:\lang\ocaml\lib
|
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.
|
|
|
|
|
1996-03-11 05:58:14 -08:00
|
|
|
In addition to Visual C++ 4.0 and MASM 6, you will also need a healthy
|
1996-02-25 10:00:26 -08:00
|
|
|
set of Unix / GNU utilities that understands long file names
|
|
|
|
(see e.g. ftp://ftp.cc.utexas.edu/microlib/nt/gnu/).
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
The bootstrap compilers provided in the Unix distribution (boot/ocamlc
|
|
|
|
and boot/ocamllex) must be replaced by those from the binary Windows
|
|
|
|
distribution (ocaml\bin\ocamlc.exe and ocaml\bin\ocamllex.exe).
|
1996-02-25 10:00:26 -08:00
|
|
|
|
|
|
|
The sources for the toplevel graphical user interface are not
|
|
|
|
publically available.
|
|
|
|
|
|
|
|
|
|
|
|
RANDOM NOTES:
|
|
|
|
|
|
|
|
* The VC++ compiler does a poor job on byterun/interp.c. Consequently,
|
|
|
|
the performance of bytecode programs is about half of that obtained
|
|
|
|
under Unix/GCC on similar hardware. GCC would give much better
|
|
|
|
performance, but none of the currently available ports of GCC for
|
|
|
|
Win32 is sufficiently complete, robust and stable to compile Caml
|
|
|
|
Special Light.
|
|
|
|
|
1996-03-18 04:07:01 -08:00
|
|
|
* The "num", "str" and "graph" libraries are available under Win32.
|
|
|
|
("graph" works only under the toplevel application).
|
|
|
|
The other external libraries ("unix", "threads", "camltk4") make heavy
|
|
|
|
use of Unix system calls and require considerable work to run under
|
|
|
|
Win32.
|
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
|
|
|
|
|
|
|
The graphical user interface for the toplevel is due to Jean-Marie
|
|
|
|
Geffroy at INRIA Rocquencourt.
|