OCaml Compiler - Generate Native Code | Online Free DevTools by Hexmos
Generate native executables with OCaml Compiler (ocamlopt). Compile OCaml code to ELF binaries on Linux and debug with ease. Free online tool, no registration required.
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}}
