Linux
Command
Library
Commands
Basics
Tips
ocamlopt
The OCaml native code compiler.
TLDR
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]
COLLAPSE ALL
Copied to clipboard