2019-12-25 03:44:52 +00:00
|
|
|
# ocamlc
|
|
|
|
|
|
|
|
> The OCaml bytecode compiler.
|
|
|
|
> Produces executables runnable by the OCaml interpreter.
|
2020-10-05 15:19:55 +01:00
|
|
|
> More information: <https://ocaml.org>.
|
2019-12-25 03:44:52 +00: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}}`
|
2020-10-05 15:19:55 +01:00
|
|
|
|
|
|
|
- Automatically generate a module signature (interface) file:
|
|
|
|
|
|
|
|
`ocamlc -i {{path/to/source_file.ml}}`
|