tldr/pages/common/ocamlc.md

13 lines
279 B
Markdown

# ocamlc
> The OCaml bytecode compiler.
> Produces executables runnable by the OCaml interpreter.
- 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}}`