mirror of https://github.com/CrimsonTome/tldr.git
14 lines
323 B
Markdown
14 lines
323 B
Markdown
# ocamlopt
|
|
|
|
> The OCaml native code compiler.
|
|
> Produces native executables, e.g. ELF on Linux.
|
|
> More information: <https://ocaml.org>.
|
|
|
|
- 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}}`
|