The OCaml system, release 4.14

The OCaml system
release 4.14
Documentation and user’s manual
Xavier Leroy,
Damien Doligez, Alain Frisch, Jacques Garrigue, Didier Rémy and Jérôme Vouillon
28thMarch, 2022
Copyright © 2022 Institut National de Recherche en Informatique et en Automatique
This manual is also available in PDF, plain text, as a bundle of HTML files, and as a bundle of Emacs Info files.

- Contents
- Foreword

# Part I An introduction to OCaml

- Chapter 1 The core language
- Chapter 2 The module system
- Chapter 3 Objects in OCaml
- Chapter 4 Labeled arguments
- Chapter 5 Polymorphic variants
- Chapter 6 Polymorphism and its limitations
- Chapter 7 Generalized algebraic datatypes
- Chapter 8 Advanced examples with classes and modules

# Part II The OCaml language

- Chapter 9 The OCaml language
- Chapter 10 Language extensions

# Part III The OCaml tools

- Chapter 11 Batch compilation (ocamlc)
- Chapter 12 The toplevel system or REPL (ocaml)
- Chapter 13 The runtime system (ocamlrun)
- Chapter 14 Native-code compilation (ocamlopt)
- Chapter 15 Lexer and parser generators (ocamllex, ocamlyacc)
- Chapter 16 Dependency generator (ocamldep)
- Chapter 17 The documentation generator (ocamldoc)
- Chapter 18 The debugger (ocamldebug)
- Chapter 19 Profiling (ocamlprof)
- Chapter 20 Interfacing C with OCaml
- Chapter 21 Optimisation with Flambda
- Chapter 22 Fuzzing with afl-fuzz
- Chapter 23 Runtime tracing with the instrumented runtime
- Chapter 24 The “Tail Modulo Constructor” program transformation

# Part IV The OCaml library

- Chapter 25 The core library
- Chapter 26 The standard library
- Chapter 27 The compiler front-end
- Chapter 28 The unix library: Unix system calls
- Chapter 29 The str library: regular expressions and string processing
- Chapter 30 The threads library
- Chapter 31 The dynlink library: dynamic loading and linking of object files
- Chapter 32 Recently removed or moved libraries (Graphics, Bigarray, Num, LablTk)

# Part V Indexes

- Index of modules
- Index of module types
- Index of types
- Index of exceptions
- Index of values

- Index of keywords

> This document was translated from LATEX by HEVEA.