ocamlopt Command Examples

The OCaml native code compiler. Produces native executables, e.g. ELF on Linux. More information: https://ocaml.org.

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

ocamlopt -g -o {{path/to/binary}} {{path/to/source_file.ml}}