Features
-
SSA intermediate representation (merged): New
-use-ssaflag activates an experimental SSA pipeline between Cmm and CFG, with aCfg_comparevalidator that cross-checks the SSA path against the legacyCfg_selectgenoutput per function. Enabled by-experimental-optimizations; incompatible with-llvm-backend. #5810 -
Link-time optimization flags (open):
-support-ltostores Reaper traversal data in.cmxfiles;-reaper-solveruns a whole-program fixpoint over multiple units;-reaper-rebuildresumes codegen from a.ltosolfile. A demo build ofocamloptwith LTO produces a 41.6%-smaller binary on ARM64. #7264 #7268 #7274 #7289 -
Linker-level dead code elimination (open): Per-symbol data sections and link-order frame-table pieces let
--gc-sectionsdrop unreferenced functions and module fields. Measured 31.8% file-size reduction on a 1.3 GB production executable; a follow-up eliminating module blocks reaches 38.2%. #7324 #7334 -
Guard-page stack idling for fiber scaling (open): Suspended fibers on the major heap are "idled" into malloced buffers, freeing their 8 MiB guarded mappings. A 100 000-fiber test completes with a peak of 2 000 VMAs (previously unbounded). 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, enabling the type checker to reject allocation innoalloccontexts. #7162
Fixes
-
Reaper segfault with
-no-reaper-unbox(merged): The calling-convention-changes analysis was skipped when unboxing was disabled, causing all functions to be treated as having mutable conventions. The analysis now runs unconditionally. #7320 -
Principality check for mode crossing (merged):
crossing_of_tyusedgeneric_levelas the threshold, butmoregenoperates atsubject_level(one below), so the actual crossing was always replaced byCrossing.max. The check now tests>= subject_level. #7298
Compatibility and Releases
-syntax-quotations/-no-syntax-quotationsflags (merged): Syntax quotation is now a per-invocation compiler flag (also settable viaOCAMLPARAM syntax-quotations=0|1) rather than a configure-time constant. The#syntax quotations on|offdirective still overrides per file. Accepted byocamlc,ocamlopt,ocaml,ocamlnat,ocamldep. #7286