louise
The Louise language: compiler, runtime, std, tooling
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runÉchoué#94 · main · 15 min 28 s
0Étoiles
0Forks
40Issues
Build: PGO for the fast runtime archive, as a script (issue #193 step 2)
scripts/pgo-runtime.sh builds the instrumented runtime, trains it on the benchmarks, and rebuilds with the merged profile, leaving target/pgo/use/liblouise_rt-fast.a. The traps it encodes (found while developing it): the link needs the driver's -fprofile-generate flag, not just the archive on the line, or the writer is never registered and no profraw is written (any linker, any GC setting); and PGO applies to the machine-code archive — with ThinLTO the runtime is re-laid-out at the program's link, where the profile does not reach. Measured 2026-10-15 on the assessment machine (pinned, interleaved, best-of; instructions in parentheses), fast-linked throughout: fanin -25% (-22%), selective -17% (-18%), records -8% (-11%), timers -8% (-8%), idle -7%, html +2% (a first pass's +14% was run-order noise), the compute benchmarks within ±1%. The wins are the scheduler's hot paths; the layout-sensitive html does not regress. Defaults are unchanged: PGO is opt-in per release, pending the quiet runner's read of the variance harness.
Parents 00292e7
1 fichiers modifiés, 61 ajouts, 0 suppressions
scripts/pgo-runtime.sh+61−0