commands.sh

ocamlopt

all

The OCaml native code compiler. Produces native executables, e.g. ELF on Linux.

More info →

Examples (2)

Compile a source file

ocamlopt -o path/to/binary path/to/source_file.ml

Compile with debugging enabled

ocamlopt -g -o path/to/binary path/to/source_file.ml
made by @shridhargupta | data from tldr-pages