1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages/common/ocamlopt.md

323 B

ocamlopt

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

  • 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}}