<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/notes/investigation.md, 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-25T06:06:46Z</updated>
<entry>
<title>build: make the 64-bit z/OS build the default</title>
<updated>2026-11-25T06:06:46Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:06:46Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b786aac5c1578a5e87c42db8273e13af09ab5ef7'/>
<id>urn:sha1:b786aac5c1578a5e87c42db8273e13af09ab5ef7</id>
<content type='text'>
zash is built 64-bit on z/OS now: -m64 for the ASCII and the EBCDIC
build and for the debug build, and `make` as well as `make zash` land
on zos-ascii there. The 31-bit build existed for the 64-bit start and
fork costs, which were the C run-time being loaded out of the linklist;
with CELQ* in the LPA the widths measure the same and the shell is
built at the width IBM builds for.

The catalog and dynamic-allocation modules are AMODE 31 and OS_UPSTACK
does not exist at -m64, so both are declared with plain OS linkage,
which is the 64-bit glue for an AMODE 31 callee. Neither module is
installed on the test system, so that path is unverified there;
csi_call() still catches a program check and retires the catalog.
IGGCSI00's VL bit comes from the width of a pointer, not 0x80000000.

Documentation follows: README gains a Recommendations section for the
LPA change and loses the 31-bit rationale; DESIGN.md's cost model,
catalog linkage and open questions match the measurements; bench/README
states the current width and the rerun numbers; investigation.md
records the decision.
</content>
</entry>
<entry>
<title>docs: name the system by release, not by its hostname</title>
<updated>2026-11-25T05:14:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T05:14:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=44252281ec0044cc816f0b3c384e35cfe5dd8469'/>
<id>urn:sha1:44252281ec0044cc816f0b3c384e35cfe5dd8469</id>
<content type='text'>
</content>
</entry>
<entry>
<title>notes: 64-bit before and after the LPA change, side by side with 31-bit</title>
<updated>2026-11-25T05:10:36Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T05:10:36Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=d4baddd3efd447d438d9f17ae7a60a79ee0043ab'/>
<id>urn:sha1:d4baddd3efd447d438d9f17ae7a60a79ee0043ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>notes: rebench 64-bit against 31-bit after the LPA change (#22)</title>
<updated>2026-11-25T05:08:01Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T05:08:01Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=2b3aaafdb0e763a2836139906d1c8a7d90da34d5'/>
<id>urn:sha1:2b3aaafdb0e763a2836139906d1c8a7d90da34d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>notes: make the 64-bit runtime LPA residency permanent</title>
<updated>2026-11-25T04:36:14Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T04:36:14Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=068cbe65021f6e7e0b9956337cfb73cc032b2f4a'/>
<id>urn:sha1:068cbe65021f6e7e0b9956337cfb73cc032b2f4a</id>
<content type='text'>
PROGLE already puts the 31-bit runtime in the dynamic LPA with three
LPA ADD statements, so the 64-bit one is a fourth statement there,
activated with SET PROG=LE and no IPL.  Say where this LPAR keeps the
statements (LOADC3 -&gt; SYS3.CBT.PARMLIB.V3R1, IEASYS01, PROGLE) and add
the SDSF exec and its batch JCL for re-applying them after an IPL.
</content>
</entry>
<entry>
<title>bench: the 64-bit start-up cost was the runtime not being in the LPA (#20)</title>
<updated>2026-11-25T04:29:48Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T04:29:48Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=98f0bc024df92868d04fc42313dd034f3968c511'/>
<id>urn:sha1:98f0bc024df92868d04fc42313dd034f3968c511</id>
<content type='text'>
Adding the CELQ members of CEE.SCEERUN2 to the dynamic LPA takes a
trivial 64-bit start from 5.83 ms to 1.63 ms, the fork() cost from
4.20 ms to 0.10 ms, and /bin/zsh from 31.4 ms to 3.6 ms.  The 27x
ratio this repo has been explaining since PR #15 was a system not
following IBM's own advice for the 64-bit runtime.</content>
</entry>
<entry>
<title>notes: the 64-bit runtime is loaded from the linklist, not the LPA (#19)</title>
<updated>2026-11-25T04:24:00Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T04:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=4eeb68e37ca5703377d8bd9423a47af7d56d832a'/>
<id>urn:sha1:4eeb68e37ca5703377d8bd9423a47af7d56d832a</id>
<content type='text'>
* bench: keep the HLASM probe comments out of the continue column

Also fixes the tiny64.s header, which named tiny31.s.

* notes: the 64-bit runtime is loaded from the linklist, not the LPA</content>
</entry>
<entry>
<title>bench: keep the start-up and fork probes in bench/probes</title>
<updated>2026-11-25T03:31:20Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T03:31:20Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=582a3ec37a96d6797e8b64039f5b6d43490997fc'/>
<id>urn:sha1:582a3ec37a96d6797e8b64039f5b6d43490997fc</id>
<content type='text'>
The probe sources only existed inline in the docs and in a scratch
directory on the z/OS box, so the numbers in bench/README.md could not be
reproduced from the repository.  fk3.c (fork cost against parent storage),
tiny.c (start-up cost) and the HLASM pair tiny31.s/tiny64.s (start-up with
no C runtime) now live in bench/probes/, with run.sh building and timing
them at both widths; the docs point at them instead of repeating them.
</content>
</entry>
<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>
