2025-03-14 21:59:59 -06:00
|
|
|
# ocamlopt
|
|
|
|
|
|
|
|
|
|
> The OCaml native code compiler.
|
|
|
|
|
> Produces native executables, e.g. ELF on Linux.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/ocamlopt>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|