Thicket thicket
ocaml
REPOS 5

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

W36.2025 · 1–7 Sepoxcaml/oxcaml

Features

  • OxCaml DWARF shapes: merges type shapes into the compiler's shape mechanism, enabling functor-aware DWARF emission via .cms files. Guarded behind -shape-format debugging-shapes. (#4398, merged)
  • OxCaml shrink-wrapping: proposes moving epilogues earlier via dataflow analysis to find the earliest valid placement on each path. May increase code size through epilogue duplication. (#4655, open)
  • OxCaml phantom variables: proposes tracking optimized-away variables from Cmm through CFG and Linear to emit DWARF location descriptions. Enables debuggers to reconstruct values of eliminated temporaries. (#4595, open)
  • OxCaml [@regalloc] attributes: proposes per-function register allocator selection via [@regalloc], [@regalloc_param], and [@cold] annotations. Refactors handling from earlier closed PRs #4583, #4631, #4632. (#4633, open)

Fixes

  • OxCaml Flambda2 classic mode: fixes out-of-order symbol definitions where non-closure symbols bypassed the SCC ordering algorithm. The ill-formed terms previously broke JSIR translation. (#4629, merged; fixes #4628)
  • OxCaml runtime: fixes a race in caml_callback where a promoted continuation could be traversed by GC compaction with a stale return address, causing a segfault. (#4609, merged)
  • OxCaml block indices: eliminates unnecessary caml_modify calls when writing through a block index, reducing GC write-barrier overhead for unboxed types. (#4644, merged)

Compatibility and Releases

  • OxCaml DWARF: adds -dwarf-pedantic flag; DWARF emission errors in dwarf_type.ml are now non-fatal by default, allowing compilation to proceed past unreachable cases. (#4555, merged)