1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ocamlc.md
Managor 8e09a08059
common*: refresh old pages part 3 (#16257)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-25 21:19:03 +03:00

431 B

ocamlc

The OCaml bytecode compiler. Produces executables runnable by the OCaml interpreter. More information: https://manned.org/ocamlc.

  • Create a binary from a source file:

ocamlc {{path/to/source_file.ml}}

  • Create a named binary from a source file:

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

  • Automatically generate a module signature (interface) file:

ocamlc -i {{path/to/source_file.ml}}