mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 10:55:50 +00:00
Update cheatsheets
This commit is contained in:
22
ocamlc
Normal file
22
ocamlc
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user