raz / commit 5f03392f

commit
5f03392fd92a28c073821773c90b69fcbbdb3456
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
88e6b860
PROPOSALS.md: the hot loop's investigation, and inlining, done

patch · log

2 files changed, +5 -1

PROPOSALS.md modified +4 -0

@@ -888,6 +888,8 @@
888888
889889 ## Inlining a procedure that only returns
890890
891+**Status.** Approved by the owner on 2026-10-23 and implemented: a call of a procedure whose body is `return e`, with no locals and one scalar result, is made in place, its arguments in temporaries; a failed check in `e` is told at the callee's line, and the callee is in no trace (scanning 887 ms to 638, grep 268 to 199).
892+
891893 Not the language's but the compiler's: a call of a procedure whose
892894 body is `return` and an expression, as `Grep.zeros` and
893895 `Scan.tokPos` are, made in place of the call. One pass keeps no
@@ -1476,6 +1478,8 @@
14761478 and it is `execvp`'s choice.
14771479
14781480 ## An investigation: where a hot loop's time goes
1481+
1482+**Status.** Done 2026-10-23: neither a register allocator nor statement inlining earns its lines; an array parameter indexed as `[pointer + index * size]`, kept parameters in callee-saved registers, and inlining a procedure that only returns, were.
14791483
14801484 Not a change: a measurement, whose report would say whether register
14811485 allocation, inlining (see "Inlining a procedure that only returns"),

doc/compiler.md (history) modified +1 -1

@@ -1,6 +1,6 @@
11 # Reading the raz compiler
22
3-The compiler is eleven files of raz, about 12,400 lines of code (the
3+The compiler is eleven files of raz, about 12,500 lines of code (the
44 budget is 14,000). It is its own compiler: a release of it, the one
55 `BOOT` names, builds `src/`, and `make fixpoint` checks that what it
66 makes makes itself again, byte for byte. Each release was built by the