Features
-
SSA intermediate representation (merged): New
-use-ssaflag activates an experimental SSA pipeline between Cmm and CFG, gated by-experimental-optimizations. Incompatible with-llvm-backend. #5810 -
Link-time optimisation flags (open):
-support-lto,-reaper-solve, and-reaper-rebuildenable whole-program LTO across.cmxunits. A demoocamloptbuild produces a 41.6%-smaller ARM64 binary. #7264 #7268 #7274 #7289 -
Linker-level dead code elimination (open): Per-symbol data sections allow
--gc-sectionsto drop unreferenced functions and module fields. Measured 31.8% file-size reduction on a 1.3 GB executable; a follow-up reaches 38.2%. #7324 #7334 -
Guard-page stack idling (open): Suspended fibers are moved into malloced buffers, freeing their 8 MiB guarded stack mappings. AMD64 only;
OCAMLRUNPARAM Xmax_guarded_stacks(default 1024) bounds total guarded stacks. #7349 -
Allocation mode axis (open): Introduces
alloc/noalloc/noalloc_strictas a first-class modality orthogonal to statefulness. The type checker rejects allocation innoalloccontexts. #7162
Fixes
-
Reaper segfault with
-no-reaper-unbox(merged): The calling-convention-changes analysis was skipped when unboxing was disabled, causing a segfault. The analysis now runs unconditionally. #7320 -
Principality check for mode crossing (merged):
crossing_of_tyusedgeneric_levelas threshold, butmoregenoperates atsubject_level, so crossings were always replaced byCrossing.max. The check now tests>= subject_level. #7298 -
dune-ignorepatch foroxcaml-compiler(open): A corrected patch is proposed after an upstream implementation change invalidated the existing one. PR remains open. #60
Compatibility and Releases
-syntax-quotations/-no-syntax-quotationsflags (merged): Syntax quotation is now a per-invocation compiler flag (alsoOCAMLPARAM syntax-quotations=0|1) rather than a configure-time constant. Accepted byocamlc,ocamlopt,ocaml,ocamlnat,ocamldep. #7286