mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-01 21:40:24 +00:00
9 lines
234 B
Plaintext
9 lines
234 B
Plaintext
|
# To compile into a bytecode executable:
|
||
|
# ocamlc hello.ml -o hello
|
||
|
# To compile into an optimized native-code executable:
|
||
|
# ocamlopt hello.ml -o hello
|
||
|
# Start ocaml interactive shell
|
||
|
# ocaml
|
||
|
#
|
||
|
print_endline "Hello World!\n" ;;
|