ocamlopt is a standard native code compiler. Typical assembly syntax:
ocamlopt -o execname module1.ml module2.ml
Instead, you can use ocamlc to compile to bytecode.
Usually the standard library is already included. If you are on a * nix system and want to enable, say, the unix library, you would do something like
ocamlopt -o execname unix.cmxa module1.ml module2.ml
Cmxa files are proprietary lib codes, cma files are bytecodes.
For more complex builds, the ocamlfind is a program that helps find libaries. You can also use GNU make and similar tools. More information can be found here . This is a page about using gmake.
This is the "Coder First Ocaml" window.
Here is the lecture page for the Ocaml class I received in college. Do not try to attack Professor Gunther for any advice, although she was an evil troll if memory serves.
phoebus
source share