Thicket thicket
ocaml
REPOS 5

OxCaml covers the compiler extensions and their supporting tools and packages.

W39.2026 · 21–27 Sep

OxCaml repository summaries

2 active · 3 unchanged

Back to weekly digest

oxcaml/opam-repository

Permalink

Fixes

  • PR #60 (oxcaml/opam-repository, opened 2026-08-15 by shunueda) proposes a corrected dune-ignore patch for the oxcaml-compiler opam package after an upstream implementation change broke the existing patch. The PR remains open; its updated_at timestamp (2026-09-26) falls within the reporting interval, but no dated comment, merge, or closure is recorded in that window. Evidence is insufficient to confirm a specific in-interval event beyond the timestamp update.

oxcaml/oxcaml

Permalink

Features

  • SSA intermediate representation (merged): New -use-ssa flag activates an experimental SSA pipeline between Cmm and CFG, with a Cfg_compare validator that cross-checks the SSA path against the legacy Cfg_selectgen output per function. Enabled by -experimental-optimizations; incompatible with -llvm-backend. #5810

  • Link-time optimization flags (open): -support-lto stores Reaper traversal data in .cmx files; -reaper-solve runs a whole-program fixpoint over multiple units; -reaper-rebuild resumes codegen from a .ltosol file. A demo build of ocamlopt with 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-sections drop 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_strict as a first-class modality orthogonal to statefulness, enabling the type checker to reject allocation in noalloc contexts. #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_ty used generic_level as the threshold, but moregen operates at subject_level (one below), so the actual crossing was always replaced by Crossing.max. The check now tests >= subject_level. #7298

Compatibility and Releases

  • -syntax-quotations / -no-syntax-quotations flags (merged): Syntax quotation is now a per-invocation compiler flag (also settable via OCAMLPARAM syntax-quotations=0|1) rather than a configure-time constant. The #syntax quotations on|off directive still overrides per file. Accepted by ocamlc, ocamlopt, ocaml, ocamlnat, ocamldep. #7286
3 repositories · no changes