Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, save the code in a file named hello_world.ml
and use the ocaml
command to execute it.
Sometimes we’ll want to compile our OCaml programs into executables. We can do this using ocamlc
.
We can then execute the compiled binary directly.
Now that we can run and build basic OCaml programs, let’s learn more about the language.