The OCaml compiler is a complicated software artifact. Below is an attempt to document information that could not fit easily into the codebase, including relevant papers. Feel free to break this up into pages as the need arises.
- Presentation on OCaml Internals (pdf): excellent presentation on how OCaml is built on the inside.
- Exception handling in OCaml: a StackOverflow answer detailing how exceptions work in OCaml.
Interesting Branches of the Compiler
- hacking.adoc: a basic guide to the compiler’s internals.