🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #193

Re: Documentation (was Re: Performance of xchg reg,reg)

#193
From: MitchAlsup
Date: Sun, 18 Oct 2026 17:48
39 lines
2855 bytes
Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> posted:

> On Sat, 17 Oct 2026 19:39:42 GMT, MitchAlsup wrote:
> 
> > Writing high quality documentation is fundamentally hard.
> 
> Isn’t that why formal specification languages were invented? For some
> reason they never caught on.

There numerous examples of "minutia" in CPU design where one can 
never provide a sufficiently formal quantification of what that
part does. A series of unsigned operations culminating in a signed
operation that result in a single multi-wide signed result.
 
> For a classic example, look at the Algol-68 language spec. Yet many
> people threw up their hands in horror at how it was written.
> 
> > It took me nearly 40 years of doing so to get to the point a
> > mischievous engineer could NOT misunderstand what I had written.
> 
> Presumably you include lots of examples?

Yes, a while back I was having a bit of trouble describing shift
instructions {both signed and unsigned} in snippets of C-like
code. Eventually, I drew up figures illustrating how each bit
moved through the calculation(s). And the figures did way more 
in the definition department than any c-code snippet could.

For example (especially) the double wide shift instructions and
insert instructions that arise when the shift instruction is in
the shadow of a CARRY modifier. It is easy in a figure to illus-
trate how bits cross from one 64-bit container to another, over-
flow off the top and shift up into another from the bottom (and
vice versa).

>                                          I remember something Jerry
> Pournelle said, critiquing the product documentation he had to read
> for his columns in “BYTE” magazine, back in the day: “You can never
> have too many examples”.
Technical Details
Message-ID: <1792345715-5857@newsgrouper.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com> <1792265982-5857@newsgrouper.org> <11b0nak$iems$9@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: Documentation (was Re: Performance of xchg reg,reg)
References: <2026Oct13.104347@mips.complang.tuwien.ac.at>
 	<11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com>
 	<1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com>
 	<1792265982-5857@newsgrouper.org> <11b0nak$iems$9@dont-email.me>
Date: Sun, 18 Oct 2026 17:48:35 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1792345715-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Sun, 18 Oct 2026 17:48:35 GMT
User-Agent: Newsgrouper/0.9.0