From 42805e8ddd013892dee28ff95e1690f25f941333 Mon Sep 17 00:00:00 2001 From: mira01 Date: Wed, 25 Dec 2019 04:44:52 +0100 Subject: [PATCH] ocamlc: add page (#3516) --- pages/common/ocamlc.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/common/ocamlc.md diff --git a/pages/common/ocamlc.md b/pages/common/ocamlc.md new file mode 100644 index 0000000000..07774f6869 --- /dev/null +++ b/pages/common/ocamlc.md @@ -0,0 +1,12 @@ +# ocamlc + +> The OCaml bytecode compiler. +> Produces executables runnable by the OCaml interpreter. + +- 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}}`