Files
R8Forge/docs
dsh 1513111689 synth: measure whether the address-aware metric can shrink a real program
It cannot.  The calculator assembles to 73624 characters in the default flat
metric and 73940 with --synth-chars (identity layout), 316 more.  Three reasons,
now written down in SPEC section 3.7:

* the travel term 2*(hi-lo) is translation invariant, so moving a group of cells
  farther or nearer changes nothing; only a permutation or a spread can, and the
  contiguous identity layout is already the tightest of those;
* the library blocks are expanded at dozens of call sites with different
  addresses, so a single layout line is a guess that the real sites rarely
  match;
* the model still ignores the hop between blocks, and the exact metric tends to
  pick programs with more blocks (six blocks for the adder table against five,
  82 emitted characters against 87 -- five characters, which the other tables
  give back and more).

Cell placement is the lever that works, and it is already spent: the terminal
front end first put its borrowed classifier cells at 52..57 (77164 characters)
and moving them into 20..29 gave 73624, minus 3540.  Five single-cell moves on
the current map were measured too (T and DEPTH to 17, HAVE and CNT to 52, S2
back to 52) and every one is longer: +182, +2900, +92, +134, +3810.  So the map
is a local optimum and the only way down from 73.6k is to drop features.

The experiment left three metric-0 cache entries behind; they were deleted, so
the committed cache still holds only what the flat metric needs.
2026-11-19 14:33:25 +08:00
..