tobogganSe connecter

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.

Build: fixed code layout (aligned functions and loops), and a build-to-build variance harness (issue #193)

Step 1 of ADR 0040's Revision 1: the kept-fields work broke on
build-to-build code-placement variance (ThinLTO), and identical binaries
swung ±16% in wall clock under load. Before anything re-lands on
benchmark numbers, identical builds must agree.

- Release C compiles and links get -falign-functions=32 and
  -falign-loops=32, each probed under -Werror (an unrecognised-flag
  warning fails the probe), with clang's older -mllvm spelling as the
  fallback. The flags are cached with the toolchain choice (cache format
  v3), precede LOUISE_CFLAGS so users can override, and LOUISE_NO_ALIGN
  turns them off for bisection.
- scripts/bench.sh learns BENCH_PIN: pin the timed runs to a CPU list.
- scripts/bench-variance.sh, the harness the issue asks for: builds every
  benchmark from scratch N times per configuration (fresh build dirs, so
  ThinLTO places the code anew), runs the builds interleaved so machine
  drift touches all alike, and reports the build-to-build spread of wall
  clock and, where perf counts, CPU cycles.

olivier · il y a 1 mois · 2e9fbadabb1c618ce0c6b556b96a7491cfe19d76

Parents 78cd419

5 fichiers modifiés, 247 ajouts, 12 suppressions