Using OCaml (CSCI 6962 Spring 2004)

OCaml is installed in the directory /projects/dci/ocaml. If you cannot access it, please send an email to To use ocaml, you have to set some variables in your environment. The path of the compiler is /projects/dci/ocaml/bin. The path of the library is /projects/dci/ocaml/lib/ocaml. If you have no idea how to setup the variables in your environment, please follow the steps (assuming your environment is bash):


coffeepot Simple $ export PATH=$PATH:/projects/dci/ocaml/bin
coffeepot Simple $ export LIB=/projects/dci/ocaml/lib/ocaml:$LIB

Here are some commands you may want to use.

ocamlc: the batch bytecode compiler
ocamlopt: the batch native-code compiler (if supported)
ocamlrun: the runtime system for the bytecode compiler
ocamlyacc: the parser generator
ocamllex: the lexer generator
ocaml: the interactive, toplevel-based system
ocamlmktop: a tool to make toplevel systems that integrate user-defined C primitives and Caml code
ocamldebug: the source-level replay debugger
ocamldep: generator of "make" dependencies for Caml sources
ocamldoc: documentation generator
ocamlprof: execution count profiler
ocamlcp: the bytecode compiler in profiling mode