2025-03-14 21:59:59 -06:00
|
|
|
# ocamlc
|
|
|
|
|
|
|
|
|
|
> The OCaml bytecode compiler.
|
|
|
|
|
> Produces executables runnable by the OCaml interpreter.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/ocamlc>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|