1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ocamlopt.md
Managor 8e09a08059
common*: refresh old pages part 3 (#16257)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-25 21:19:03 +03:00

13 lines
333 B
Markdown

# ocamlopt
> The OCaml native code compiler.
> Produces native executables, e.g. ELF on Linux.
> More information: <https://manned.org/ocamlopt>.
- 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}}`