Debian OCaml Packaging Policy for OCaml 3.10.2
Prev | Chapter 1. Generalities about OCaml packages in Debian | Next

# 1.4. Files Used and Produced by the OCaml Compiler

The OCaml compiler can produce or use the following kind of files:

- bytecode executables (they can be recognized since they start with the shebang line #!/usr/bin/ocamlrun)

- bytecode executables linked in custom mode. They are generated by ocamlc (or ocamlc.opt), when the `-custom` flag is given at link time. Those executables are in ELF format and include both the final bytecode and the bytecode interpreter. strip should never be invoked on them, since it will remove the bytecode part.

- native executables (in ELF format)

- bytecode libraries (`*.cma`)

- native libraries (`*.cmxa`)

- shared libraries (for C bindings) (`dll*.so`, `lib*.so`)

- static libraries (for C bindings) (`lib*.a`)

- bytecode object files (`*.cmo`)

- native object files (`*.cmx`)

- configuration files for handling libraries with `ocamlfind` (`META`)

Prev | Home | Next
OCaml in Debian | Up | Locally Installing OCaml Programs and Libraries