ocamlc
The OCaml bytecode compiler. Produces executables runnable by the OCaml interpreter. More information: https://ocaml.org.
-
Create a binary from a source file:
ocamlc {{path/to/source_file.ml}}
-
Create a named binary from a source file:
ocamlc -o {{path/to/binary}} {{path/to/source_file.ml}}
-
Automatically generate a module signature (interface) file:
ocamlc -i {{path/to/source_file.ml}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.