<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/tests/tools/spawn.c, branch chore/c23-nullptr-constexpr</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=chore%2Fc23-nullptr-constexpr</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=chore%2Fc23-nullptr-constexpr'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-25T03:05:17Z</updated>
<entry>
<title>Wording pass on the 64-bit start-up write-up (#17)</title>
<updated>2026-11-25T03:05:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T03:05:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=4e2be21ad459e9622bfdb30f9daf04f547cdf86a'/>
<id>urn:sha1:4e2be21ad459e9622bfdb30f9daf04f547cdf86a</id>
<content type='text'>
* notes: plainer wording in the 64-bit start-up write-up

Same findings, less staging: no dash-as-connector, no bold cell, no
"not X but Y" contrast, and one space after a full stop like the rest
of the file.  Also fixes "4-5 orders of magnitude" for a 5x difference.

* tests: clang-format spawn.c</content>
</entry>
<entry>
<title>Measure why 64-bit start-up is slow, and record the answer (#16)</title>
<updated>2026-11-25T01:52:27Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T01:52:27Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c0e48819c3077ccc020deb8b9ffe9de9911ab3d2'/>
<id>urn:sha1:c0e48819c3077ccc020deb8b9ffe9de9911ab3d2</id>
<content type='text'>
* bench: time one start with a parent that is not an LE program

`bench/startup.sh` times a shell loop, so on z/OS every child pays the
31-bit shell's own price and the 64-bit start-up cost cannot be
separated from it.  `tests/tools/spawn` forks one child at a time and
reports wall and child CPU per start, and `bench/le-init.sh` builds the
31-bit, 64-bit and HLASM programs it times in a work directory, so the
table needs nothing checked in but the script.

The child's environment is built by hand and passed to `execve`:
`putenv` after LE has initialized is not handed to the child, and
`_CEE_RUNOPTS` exported to an LE parent makes that parent's `execl`
fail, which a fork loop that does not check exit status reports as a
fast start.

* notes: the 64-bit start-up cost is LE waiting, not the address mode

Measured on the CBT z/OS 29.00 system: a 64-bit HLASM program with no
LE starts in 1.39 ms, the same source at -m32 in 1.5-1.8 ms, so the
address space, the loader and XPLINK are free.  A -m64 start spends
4.5-28 ms before the first instruction of main, of which only 1.0-1.25
ms is charged to the child: the rest is wall time on something shared,
which does not overlap between concurrent starts while it is at 28 ms
and does once it drops to 5.8 ms.  No _CEE_RUNOPTS option moves it.

That retracts an earlier POSIX(OFF) result in these notes: exporting the
option to an LE parent makes its execl fail, so the run timed failed
execs.  Applied to the child, POSIX(OFF) changes nothing.</content>
</entry>
</feed>
