summaryrefslogtreecommitdiffhomepage
path: root/DESIGN.md
diff options
context:
space:
mode:
Diffstat (limited to 'DESIGN.md')
-rw-r--r--DESIGN.md201
1 files changed, 100 insertions, 101 deletions
diff --git a/DESIGN.md b/DESIGN.md
index dcc4469..ec1eba3 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -55,10 +55,10 @@ creation and character encoding.
## Language level
-- **C17**, compiled with `-std=c17` and no compiler extensions beyond a
+- C17, compiled with `-std=c17` and no compiler extensions beyond a
few attributes that are wrapped in macros. C23 was tried first and
dropped: it cannot be relied on for the z/OS toolchain.
-- **Clang on Linux, IBM Open XL C/C++ (Clang-based) on z/OS.** The tree
+- Clang on Linux, IBM Open XL C/C++ (Clang-based) on z/OS. The tree
also builds cleanly with GCC (`-std=c17 -pedantic -Wall -Wextra`),
which is checked from time to time to keep the code honest. The legacy
z/OS XL C/C++ (`xlc`) is not a target.
@@ -162,24 +162,23 @@ modes, several of these assumptions turn out to need qualifying:
| `fork()` + `wait()`, 64 MB touched | 28.2 ms | 27.7 ms |
| start a trivial program | 29.5 ms | 1.1 ms |
-So there are two independent costs, and only one of them is about
-copying:
+Two independent costs, and only one of them is about copying.
-- **A fixed penalty for Language Environment at 64 bits**: about 4 ms
- per fork and 28 ms per program start, whatever the program does or
- holds. The address mode itself is free — an assembler program with no
- C run-time starts in 0.8 ms at 31 bits or 64 — so the cost is LE
- building the 64-bit enclave, and it is not storage-related, not
- program load, and not the sticky bit.
-- **A copy cost both modes pay**, about 0.4 ms per MB of touched private
+- A fixed penalty for Language Environment at 64 bits: about 4 ms per
+ fork and 28 ms per program start, whatever the program does or holds.
+ The address mode itself is free (an assembler program with no C
+ run-time starts in 0.8 ms at 31 bits and at 64), so the cost is LE
+ building the 64-bit enclave. It is not storage-related, not program
+ load, and not the sticky bit.
+- A copy cost both modes pay, about 0.4 ms per MB of touched private
storage. At 64 MB it swamps the address-mode difference and the two
modes converge.
-Two consequences. The rule above still holds — `spawn()` costs no more
-than `fork()` and avoids the copy — but the reason usually given for it,
-that z/OS `fork()` is inherently expensive, is true only of the copy,
-and only above a few MB. And the three rows that zash used to lose on
-z/OS (`( : ) &`, `( cd / ) &`, `( cd / )`) are lost to the 64-bit C
+Two consequences. The rule above still holds, since `spawn()` costs no
+more than `fork()` and avoids the copy, but the reason usually given for
+it, that z/OS `fork()` is inherently expensive, is true only of the
+copy, and only above a few MB. The three rows zash used to lose on z/OS
+(`( : ) &`, `( cd / ) &`, `( cd / )`) are lost to the 64-bit C
run-time, not to the plan: they would be won without changing the plan
at all.
@@ -231,10 +230,10 @@ zash avoids it for *output-only* builtins (`echo`, `printf`, `pwd`,
`test`, `true`, `false`, `type`): builtins whose only effect is writing
to stdout/stderr. Two things make that safe:
-1. **Builtins write through `out1`/`out2`, never to fd 1 directly.** The
+1. Builtins write through `out1`/`out2`, never to fd 1 directly. The
output object is pointed at a pipe, or at a memory buffer, for the
duration of the builtin. The real fd table is untouched.
-2. **Expansion side effects are undone.** Expanding the builtin's
+2. Expansion side effects are undone. Expanding the builtin's
arguments can assign variables (`${x=1}`, `$((i++))`). The expansion
runs inside a *capture scope* that records every variable change and
reverts it afterwards, so the visible behaviour matches a subshell.
@@ -300,31 +299,31 @@ zash builds in ASCII mode (`-fzos-le-char-mode=ascii`, the zopen
convention) or in EBCDIC (IBM-1047), chosen at compile time. The source
never assumes either:
-- **No in-band marker bytes.** A classic ash encodes quoting inside the
+- No in-band marker bytes. A classic ash encodes quoting inside the
word as control bytes in the 0x81+ range. In IBM-1047 those are
ordinary letters (`0x81` is `a`). zash keeps words as a typed list of
parts (literal, parameter, command substitution, arithmetic), each
flagged quoted or not. There are no reserved byte values.
-- **No arithmetic on letters.** `a`..`z` are not contiguous in EBCDIC.
+- No arithmetic on letters. `a`..`z` are not contiguous in EBCDIC.
Character tests go through `<ctype.h>`. Bracket ranges such as
`[a-z]` are matched by alphabet position when both ends are letters of
the same case (or both digits), and by code point otherwise.
-- **No tables sorted by hand.** Lookup tables are hashed, not binary
+- No tables sorted by hand. Lookup tables are hashed, not binary
searched in source order, because collation differs.
-- **Character literals only.** Never a numeric code for a character.
+- Character literals only. Never a numeric code for a character.
## Memory
-- **`scratch`**: a bump arena used as a stack. A command takes a mark,
+- `scratch`: a bump arena used as a stack. A command takes a mark,
expands its words into the arena, runs, and releases to the mark. No
per-string `free()`.
-- **Parse arenas**: each top-level command is parsed into a
+- Parse arenas: each top-level command is parsed into a
reference-counted arena. Normally it is reset and reused for the next
command. If the command defines a function, the function takes a
reference and the read loop moves on to a fresh arena. Function bodies
are therefore never copied, and are freed when the function is
redefined or unset and no call is in progress.
-- **Heap**: long-lived things only: variables, the command table, traps.
+- Heap: long-lived things only: variables, the command table, traps.
Each arena keeps one released chunk for reuse, so a loop body crossing a
chunk boundary does not `malloc()` and `free()` on every iteration.
@@ -369,12 +368,12 @@ character sets.
Redirections are resolved (files opened, here-documents materialised) by
one routine and then applied in one of two ways:
-- **Planned**, for external commands. An `fdplan` is an array saying which
+- Planned, for external commands. An `fdplan` is an array saying which
parent descriptor each child descriptor 0..9 should be. Redirections
edit the array. Nothing is `dup2()`ed in the shell. The plan is handed
to `spawn()` as its `fd_map` on z/OS and translated to
`posix_spawn` file actions elsewhere.
-- **Real**, for builtins, functions and compound commands. The affected
+- Real, for builtins, functions and compound commands. The affected
descriptors are saved above 10, replaced, and restored afterwards.
Here-documents up to `PIPE_BUF` are written into a pipe by the shell;
@@ -390,7 +389,7 @@ collecting pointers. The array is cached and rebuilt only when an
exported variable changes. Variables inherited from the environment are
referenced in place, not copied.
-**Scopes** are a single mechanism with three uses: `local` variables in
+Scopes are a single mechanism with three uses: `local` variables in
functions, temporary assignments (`VAR=x cmd` for builtins and
functions), and the capture scope described under
[Process creation](#running-builtins-without-a-subshell). A scope is a
@@ -460,18 +459,18 @@ them can be tested (see [Checking z/OS code off z/OS](#checking-zos-code-off-zos
Code outside `sys_*.c` tests `SYS_MVS`, a compile-time 0 or 1, so the
Linux build compiles the z/OS-only branches away entirely.
-It **compiles and runs on z/OS**. `make zos-ascii` and `make zos-ebcdic`
+It compiles and runs on z/OS. `make zos-ascii` and `make zos-ebcdic`
build it with ibm-clang for both character sets (ASCII is the default
-`./zash`, the build zopen uses, and EBCDIC is `./zash-ebcdic`),
-`tests/zos/*` drive spawn, pipes, the environment handed to `spawn()`, tagging,
-TSO and the MVS
-decoders there, and `make zos-heapcheck` runs the whole suite under LE
-`HEAPCHK` and `HEAPZONES`, the nearest thing z/OS has to ASan. In that
-mode two signal tests (`posix/traps`, `scripts/signals`) fail, because a
-self-`kill` no longer ends the shell the way it does under `zos-check`;
-they pass in `zos-check` and pass individually under the same run
-options, and they have not been rewritten to allow for the mode. What no
-test reaches is still marked `VERIFY` in the source:
+`./zash`, the build zopen uses, and EBCDIC is `./zash-ebcdic`).
+`tests/zos/*` drive spawn, pipes, the environment handed to `spawn()`,
+tagging, TSO and the MVS decoders there, and `make zos-heapcheck` runs
+the whole suite under LE `HEAPCHK` and `HEAPZONES`, the nearest thing
+z/OS has to ASan. In that mode two signal tests (`posix/traps`,
+`scripts/signals`) fail, because a self-`kill` no longer ends the shell
+the way it does under `zos-check`; they pass in `zos-check` and pass
+individually under the same run options, and they have not been rewritten
+to allow for the mode. What no test reaches is still marked `VERIFY` in
+the source:
- the tagging system calls: a deferred tag applied by a writer with
autoconversion off, `SETCVTON` with `pccsid` 0 after `spawn()`, an
@@ -503,27 +502,27 @@ adds what it needs to work beside EBCDIC programs.
Decisions and reasons:
-- **Hooks, not lookups.** `_TAG_REDIR_*` are watched by variable hooks
+- Hooks, not lookups. `_TAG_REDIR_*` are watched by variable hooks
(as `PATH` and `IFS` are), so a redirection tests a cached byte. A
prefix on an external command (`_TAG_REDIR_OUT=TXT cmd >f`) never
becomes a shell variable. `run_external()` therefore scans the
command's own assignments, and only when there are any.
-- **Pipeline stages.** A prefix on a stage tags that stage's pipe end:
+- Pipeline stages. A prefix on a stage tags that stage's pipe end:
`_TAG_REDIR_OUT=TXT a | b` tags `a`'s output, as documented for
`/bin/sh`.
-- **The tag follows the writer.** A deferred tag takes the CCSID of the
+- The tag follows the writer. A deferred tag takes the CCSID of the
first program that writes, so an EBCDIC tool behind `>` in an ASCII
shell still produces a correctly tagged IBM-1047 file.
-- **Pipes in ASCII builds are IBM-1047.** If they were tagged 819 (as
+- Pipes in ASCII builds are IBM-1047. If they were tagged 819 (as
zoslib does) an EBCDIC reader would see ASCII. Tagged 1047, ASCII
writers are converted on write and ASCII readers on read. Between two
ASCII programs that costs two conversions per byte. `set +o pipetag`
avoids it when no EBCDIC program is involved.
-- **Sniffing.** Single-byte CCSIDs only, so file offsets are unchanged
+- Sniffing. Single-byte CCSIDs only, so file offsets are unchanged
and the `lseek()` that keeps a shared stdin correct still works.
Standard input is never converted: its conversion state is shared
with the commands the shell runs.
-- **Recommendation.** For a `/bin/sh` replacement, build EBCDIC: 1047
+- Recommendation. For a `/bin/sh` replacement, build EBCDIC: 1047
scripts need no conversion at all. Build ASCII for zopen environments.
Cost: one `fstat()`/`fcntl()` per redirection, here-document or script,
@@ -570,16 +569,16 @@ validated before the catalog is asked (`csi_filter_ok()`): 1-44
characters, qualifiers of 1-8, legal characters, and a first qualifier
that is not all wildcard.
-**The Catalog Search Interface.** IGGCSI00 takes three addresses in a
+The catalog search interface. IGGCSI00 takes three addresses in a
standard OS parameter list: reason area, selection criteria, work area,
with the VL bit on the last. zash is 31-bit XPLINK and IGGCSI00 is AMODE
31, so the two agree and the call is a plain call through a function
-pointer: no mode switch and no assembler. `fetch()` loads the module on
-the first search, and it stays loaded for the life of the shell -- a Tab
-already asks the catalog as much as a screen can show, and it should not
-also ask the system to search its directories every time.
+pointer: no mode switch and no assembler. `fetch()` loads the module on the first search, and it stays loaded for
+the life of the shell: a Tab already asks the catalog as much as a
+screen can show, and it should not also ask the system to search its
+directories every time.
-Two details are load-bearing, and the second is not obvious:
+Two details matter, and the second is not obvious:
- The function type is declared with `#pragma linkage(iggcsi_fn,
OS_UPSTACK)`, **not** plain `OS`. Under `-m32` (XPLINK) `OS` means
@@ -638,8 +637,8 @@ run-time needs no repair afterwards; the shell's own handlers only
record the signal (see [Signals and traps](#signals-and-traps)), so one arriving during the
call cannot disturb it.
-**PDS directories** are read with `fopen("//'DSN'", "rb,recfm=u,blksize=256")`
-and decoded block by block. **DD names** come from walking the TIOT
+PDS directories are read with `fopen("//'DSN'", "rb,recfm=u,blksize=256")`
+and decoded block by block. DD names come from walking the TIOT
(PSATOLD, TCBTIO, entries from +24).
`mvsfmt.c`: portable C over byte buffers, every length checked before
use, big-endian fields read a byte at a time. They run (and are fuzzed)
@@ -661,7 +660,7 @@ search means a second search straight after the first succeeds without
the first's resume name leaking into it.
Still VERIFY: `fopen()` delivering PDSE directories in PDS format, and the
-TIOT walk -- neither is reached by a test on the machine.
+TIOT walk. Neither is reached by a test on the machine.
### Per-command z/OS options
@@ -696,7 +695,7 @@ possible is therefore made to run, or at least compile, on Linux:
- `make mvs-asan`: the whole suite under ASan/UBSan with the MVS
branches on over the Linux platform layer: tagging hooks,
`_TAG_REDIR_*` prefixes, `ZOS_*` variables.
-- **Stand-in catalog.** With `ZASH_TEST_CATALOG` naming a file,
+- Stand-in catalog. With `ZASH_TEST_CATALOG` naming a file,
`sys_posix.c` builds real IGGCSI00 work areas (EBCDIC, small, so the
resume protocol runs), PDS directory blocks (members split across
blocks, varying user data) and TIOT entries, and the completion code
@@ -718,18 +717,18 @@ will not always emit.
Policy:
-1. **Measure first**, on z/OS, with a real workload.
+1. Measure first, on z/OS, with a real workload.
2. Rewrite only a leaf routine with a narrow, documented interface.
-3. **Keep the C version.** It is the reference implementation, it is
+3. Keep the C version. It is the reference implementation, it is
what Linux builds use, and the tests run against both so the two
cannot drift.
4. The choice is made at build time. The default build is pure C.
-**None so far.** The catalog used to need `zos_csi.s`, an AMODE switch
+None so far. The catalog used to need `zos_csi.s`, an AMODE switch
to reach the AMODE 31 IGGCSI00 from a 64-bit program. At 31-bit the C
code calls it directly and the assembler is gone (see
-[MVS names](#mvs-names-completion-and-the-catalog)). The policy below
-is the standing one for any future candidate:
+[MVS names](#mvs-names-completion-and-the-catalog)). The policy above
+stands for any future candidate.
## Testing
@@ -791,39 +790,39 @@ Rules:
## Deliberate differences from other shells
-- **The last stage of a pipeline runs in the current shell** when it is
+- The last stage of a pipeline runs in the current shell when it is
not an external command, as in ksh and the z/OS `/bin/sh` (unlike dash
and bash). `cmd | while read x; do ...; done` therefore needs no
`fork()`, and variables set in the loop survive it.
- Consequently `cmd | exit 3` exits the shell, and `cmd | cd dir` changes
its directory.
-- **Under job control every stage is a process.** In an interactive
+- Under job control every stage is a process. In an interactive
shell with `set -m` (the default there) the last stage is not run in
the shell, because it could not be stopped with the rest of the job.
`cmd | read x` therefore does not set `x` at the prompt. bash makes
the same choice.
-- **`$((` is always arithmetic** (as in dash).
-- **`((` at the start of a command is arithmetic only if it can be.**
+- `$((` is always arithmetic (as in dash).
+- `((` at the start of a command is arithmetic only if it can be.
`((a) | b)` and `((echo x))` remain nested subshells, as POSIX has
them. See `parse_arith_command()` for the rule, and write `( (` to be
certain of a subshell.
-- **`trap` in a pipeline or `$( )` prints the traps of the shell that
- started it**, until that subshell sets a trap of its own.
-- **`function` is a reserved word**, so a command cannot be named
+- `trap` in a pipeline or `$( )` prints the traps of the shell that
+ started it, until that subshell sets a trap of its own.
+- `function` is a reserved word, so a command cannot be named
`function`.
-- **Arithmetic** has `++`, `--`, the comma operator and every `op=`.
-- **A script on standard input shares it with its commands.** zash never
+- Arithmetic has `++`, `--`, the comma operator and every `op=`.
+- A script on standard input shares it with its commands. zash never
reads ahead of the command it is running, so
`printf 'read v\ndata\necho $v\n' | zash` prints `data` (dash does
not).
-- **Exit statuses follow the ash family**: 2 for a failed redirection,
+- Exit statuses follow the ash family: 2 for a failed redirection,
127 from `type` and `command -v` for an unknown name.
-- **An expansion error in a command the shell prepares for a child**
+- An expansion error in a command the shell prepares for a child
(a pipeline stage, `&`, `$( )`) is reported on the shell's stderr, not
on the stderr that command would have had.
-- **`local`** is provided (as in FreeBSD sh and dash) although POSIX does
+- `local` is provided (as in FreeBSD sh and dash) although POSIX does
not define it.
-- **`set -o pipefail`** is provided (POSIX.1-2024).
+- `set -o pipefail` is provided (POSIX.1-2024).
- The extensions listed under [Extensions](#extensions).
## Extensions
@@ -839,17 +838,17 @@ here to keep those scripts running.
An extension is accepted only if it costs a script that does not use it
nothing measurable. Concretely:
-- **Parse-time or lookup-time only.** `function f { }` and `$'...'` are
+- Parse-time or lookup-time only. `function f { }` and `$'...'` are
gone after parsing. New builtins are rows in the builtin table.
-- **Computed on read.** `RANDOM` and `SECONDS` are `V_DYNAMIC`: an unused
+- Computed on read. `RANDOM` and `SECONDS` are `V_DYNAMIC`: an unused
one costs nothing.
-- **Inside a branch that is already taken.** The `ERR` trap is tested
+- Inside a branch that is already taken. The `ERR` trap is tested
only after a command has failed, where `errexit` was already tested.
Integer and dynamic variables share the one flag test that read-only
variables already needed in `var_set_n()`.
-- **Guarded by one test.** Alias lookup is skipped while no alias is
+- Guarded by one test. Alias lookup is skipped while no alias is
defined, and happens while parsing, so a loop body pays once.
-- **Measured.** Instruction counts (`valgrind --tool=callgrind`) of the
+- Measured. Instruction counts (`valgrind --tool=callgrind`) of the
benchmarks before and after the whole extension and interactive work
differ by about 0.1% (loop, strings, functions, read loop). One real
regression was found this way and fixed: more builtins meant longer
@@ -882,14 +881,14 @@ nothing measurable. Concretely:
### Deferred or declined
-- **Indexed arrays.** Variables hold one string, and arrays touch `var.c`
+- Indexed arrays. Variables hold one string, and arrays touch `var.c`
and `expand.c` on the hot path. Only if real scripts need them, and
measured first.
-- **Extended globbing (`@(a|b)`, `*(x)`),** co-processes (`|&`,
+- Extended globbing (`@(a|b)`, `*(x)`), co-processes (`|&`,
`print -p`), `typeset -u/-l/-L/-R`, `select`.
-- **ksh93 and bash extras:** associative arrays, `${v/pat/repl}`,
+- ksh93 and bash extras: associative arrays, `${v/pat/repl}`,
`${v:off:len}`, floating point, process substitution.
-- **`MAIL` checking, `bind`,** and FreeBSD's `-p` privileged mode.
+- `MAIL` checking, `bind`, and FreeBSD's `-p` privileged mode.
## The interactive layer
@@ -897,12 +896,12 @@ Nothing here is reached by a script. The single hook on the shared path
is one test in `input_fill()`: "is this input a terminal in an
interactive shell?"
-- **Prompts** (`interact.c`). PS1 and PS2 get FreeBSD's backslash
+- Prompts (`interact.c`). PS1 and PS2 get FreeBSD's backslash
escapes (`\h \H \u \w \W \$`) and then parameter, command and
arithmetic expansion. The prompt is expanded from inside the lexer, so
the parser's state is saved around it, and an error in the expansion
falls back to the raw text instead of failing at every prompt.
-- **The built-in editor** (`edit_builtin.c`) needs only a terminal that
+- The built-in editor (`edit_builtin.c`) needs only a terminal that
understands four ANSI sequences. There is no terminfo or curses
dependency. The line is drawn on one row that scrolls sideways, and is
redrawn in a single `write()` per key. Emacs mode has the usual motion,
@@ -910,17 +909,17 @@ interactive shell?"
has insert and command modes with counts, the common motions, `d c y`
with motions, `x X r ~ D C S p P u`, history with `k j G / ? n N`.
UTF-8 is handled as far as single-width characters.
-- **libedit** (`edit_libedit.c`) implements the same two functions:
+- libedit (`edit_libedit.c`) implements the same two functions:
`make EDIT=libedit LDLIBS=-ledit`. The shell's own history list stays
authoritative and is copied into libedit before each line.
-- **Completion** (`complete.c`) covers variables after `$`, aliases,
+- Completion (`complete.c`) covers variables after `$`, aliases,
functions, builtins and `PATH` programs in command position, and files
elsewhere, with `/` after a directory. Completed text is
backslash-escaped unless the word is inside quotes.
-- **History** (`history.c`): whole commands (a PS2 line is appended to
+- History (`history.c`): whole commands (a PS2 line is appended to
its entry), `HISTSIZE`, `HISTFILE` (mode 0600), and `fc -l`, `fc -s`,
`fc -e`.
-- **Character sets.** Key codes and ESC come from `charset.h`. The
+- Character sets. Key codes and ESC come from `charset.h`. The
EBCDIC values are IBM-1047 and have not been tried on a z/OS terminal.
## Job control
@@ -936,7 +935,7 @@ terminal that is the default (`jobs.c`).
`job_begin()` and `job_wait_fg()` or `job_end_bg()`. While a job is
being launched, `fork_shell()` and `spawn_command()` ask `jobs.c` for
the group to join.
-- **Spawn and the terminal.** A forked child puts itself in the group
+- Spawn and the terminal. A forked child puts itself in the group
and takes the terminal before it runs anything. A spawned child cannot
run code, so the platform layer does it: `POSIX_SPAWN_SETPGROUP` plus,
on glibc 2.35 and later, the `tcsetpgrp` file action. On z/OS it is
@@ -953,26 +952,26 @@ terminal that is the default (`jobs.c`).
## Roadmap
-1. **Scripting core** (done on Linux).
-2. **Extensions, job control and the interactive layer** (done on Linux,
+1. Scripting core (done on Linux).
+2. Extensions, job control and the interactive layer (done on Linux,
tested there under ASan/UBSan, and the interactive tests need a
pseudo-terminal).
-3. **First z/OS build** (done): compiles with Open XL in both character
+3. First z/OS build (done): compiles with Open XL in both character
modes, the suite passes under the LE heap checker, and the benchmarks
- are faster than every shell there but ksh88, and zash matches it on
- external commands (see the tables in README). Still open: the
+ beat every shell there except ksh88, which zash matches on external
+ commands (see the tables in README). Still open: the
remaining `VERIFY` notes in `sys_zos.c` and the benchmarks under
`_BPX_SHAREAS=` other than the default.
-4. **`[[ ]]`** (done), then whatever real z/OS scripts turn out to need.
-5. **z/OS features**: file tagging and auto-conversion, data set
+4. `[[ ]]` (done), then whatever real z/OS scripts turn out to need.
+5. z/OS features: file tagging and auto-conversion, data set
completion, `time`, job names, message IDs and `ZOS_*` (written,
VERIFY on z/OS). `tag` and the `alloc`/`free` builtins, MVS data set
redirection and `tso` are to do.
-6. **Tuning**: profile on z/OS, and use HLASM where it is justified.
+6. Tuning: profile on z/OS, and use HLASM where it is justified.
First finding, and the largest: Language Environment's 64-bit
start-up costs about 4 ms per `fork()` and 28 ms per program start.
- The address mode is not the cause — a bare assembler program starts
- in 0.8 ms at 64 bits — and the cost cannot be tuned away through LE
+ The address mode is not the cause: a bare assembler program starts
+ in 0.8 ms at 64 bits. The cost cannot be tuned away through LE
options. See [the cost model](#the-cost-model).
## Open questions
@@ -988,8 +987,8 @@ terminal that is the default (`jobs.c`).
unless the user fills it.
- `a | b &` and `{ a; } | b` still fork where a spawn-only plan exists.
The measurement says a 64-bit fork costs 4.2 ms and a 31-bit one
- 0.10 ms (see [the cost model](#the-cost-model)), so the gain depends
- on the address mode as much as on the plan.
+ 0.10 ms (see [the cost model](#the-cost-model)), so the gain comes
+ from dropping the 64-bit C run-time, not from the plan.
- Should the z/OS build stay 31-bit? It is now the default: it removes
the 4 ms fork and the 28 ms start-up, and the catalog is reached from
C without the assembler that used to make the difference. What it