raz / commit 825d0cb6

commit
825d0cb65efb1a769de5b185224e8016c9c7d754
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
1c2dc5cd
PLAN.md: proposed v0.6.0, raz to be rebuilt by anyone

The report made complete, a system integer, optional reals, an IR that
object files hold, and Wirth's register stack. Not started; it waits
for the owner's go-ahead.

patch · log

1 file changed, +52 -0

PLAN.md (history) modified +52 -0

@@ -64,6 +64,58 @@
6464 `doc/compiler.md`'s table, the report's version and the
6565 compiler's; tag `v0.5.0`.
6666
67+## Proposed, v0.6.0: raz to be rebuilt by anyone
68+
69+Not started; it waits for the owner's go-ahead, and it lifts the
70+freeze for what it names, and nothing else.
71+
72+**For:** a language a person alone can implement again, from the
73+report, on any machine, in weeks; programs that run on small machines
74+as well as large; code within reach of a simple optimising compiler,
75+without one.
76+
77+**Done when:** the report alone is enough to rebuild raz, with a
78+conformance suite to say when a rebuild is done; the report has a
79+system integer, optional reals and object files; the compiler goes
80+through an IR, which is what an object file holds, and keeps its
81+values in registers as Wirth's compilers do; `make bench` still
82+passes; a new code budget is written down; `v0.6.0` is tagged.
83+
84+**Kept out:** a second back end (aarch64 is the milestone after, to
85+measure a port); an optimiser; the wishes below.
86+
87+- [ ] 1. The report as it stands, made complete: the whole grammar;
88+ the readings in CLAUDE.md moved into the report; what every
89+ implementation must do set apart from what each may choose
90+ (code procedures, `SYSCALL`, `extern`'s convention, how several
91+ results come back, the text of messages); the core a port must
92+ have (the language, `Rt` and `Out`, over writing, exiting and
93+ getting memory) and what it may leave out. No language change.
94+ For review before anything else.
95+- [ ] 2. The report, the new language, for review before any code: the
96+ system integer, the size of an address, which `LEN`, indexes and
97+ sizes give, and how it converts to and from `I64`; reals a
98+ target may leave out; object files, a module's interface and its
99+ IR, and a generic's instances in them, named by their arguments
100+ and the fingerprints they were built from.
101+- [ ] 3. The IR, in its own document, for review: proposed, a stack
102+ code close to what the parser asks of `gen` today, with types
103+ and places, so that a back end turns its stack into registers and
104+ an interpreter of it stays small.
105+- [ ] 4. The tests split: a conformance suite any implementation
106+ passes, apart from this compiler's own messages.
107+- [ ] 5. The system integer.
108+- [ ] 6. Optional reals: a target says whether it has them.
109+- [ ] 7. The parser emits the IR and the x86-64 back end reads it;
110+ every test gives the same output as before.
111+- [ ] 8. Wirth's register stack in the back end: a value is held in
112+ one of a stack of registers, not pushed.
113+- [ ] 9. Object files: written for each module, read in place of its
114+ source when they are current; instances kept once each by the
115+ linker.
116+- [ ] 10. `doc/compiler.md`, README, the budget, the report's version
117+ and the compiler's; tag `v0.6.0`.
118+
67119 ## Wishes, for a later thaw
68120
69121 What the language or the library might have, met while writing raz;