mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 05:41:49 +00:00
19 lines
416 B
Plaintext
19 lines
416 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|