The entry output_writer
The writer of the machine test of the record outputs . The test module output_wiring starts it, with a wiring list or with none, and the record output that the list wires at its start chooses what it does: the ends of a wiring list are in its wiring ring before its first instruction.
probeswired at the start: it writes the probes 0 to 4, waits for a second reader, which a Wire adds, writes the probes 5 to 7, ends the record output, and stops.unendedwired: it writes one probe, and stops with no end record: its reader reads the end word Writer_Stopped.watchedwired: it writes one probe, and waits until its reader stops: the end word is Reader_Stopped.askedwired: it writes one probe, and waits until its asker stops: the end word is Asker_Stopped.- nothing wired: its asker wires
largeto itself, as many times as the limit of an asker allows, then revokes its wirings: it waits until each ring ended, and each end word is Revoked.
Start: by output_wiring only. What a reader sees: no window; one line "output_writer: ...: as it must" for each case, or a line "output_writer: WRONG: ...". It stops itself with the outcome Done, or Failed after a WRONG line.
output_writer module with an entry
- Hash
9873b046a07dd8ba161b948374ccad2080d586f0a99bb4b7839df5fffa9a7b6c- Size
61440 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The writer of the machine test of the record outputs
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/tests/output_writer |
| Boot image | yes: in the boot image, 61440 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
entry() | chooses its case by the record output that its start wired |
entry
entry()
entry chooses its case by the record output that its start wired.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/tests/output_writer/main.odin:93
Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).
What the root service gives it
| What | Value | As the root service says |
|---|---|---|
| Grants | none | The writer and the reader of that test: their ends come from the root service in their wiring rings, and they need no grant. |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| No MODULE_BUDGET in its source: it asks for the least budget. |
The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module; the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).
