snippetbashTip
ocamlopt — The OCaml native code compiler. Produces native executables, e.g. ELF on Linux. More information: <h
Viewed 0 times
ocamlopttheocamlcommandnativeclicodecompiler
Problem
How to use the
ocamlopt command: The OCaml native code compiler. Produces native executables, e.g. ELF on Linux. More information: <https://manned.org/ocamlopt>.Solution
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}}Code Snippets
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}}Context
tldr-pages: common/ocamlopt
Revisions (0)
No revisions yet.