🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #833

Re: packaging, Another Kick at Concertina III

#833
From: Anton Ertl
Date: Fri, 20 Nov 2026 17:50
54 lines
3877 bytes
Stephen Fuld <sfuld@alumni.cmu.edu.invalid> writes:
>On 11/20/2026 8:05 AM, Anton Ertl wrote:
>> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>>> But a PDP-10 architecture
>>> would make a great test environment for a C implementation based on
>>> 9-bit chars, 18-bit shorts, 36-bit ints, and 72-bit long/long**2.
>> 
>> The PDP-10 is word-addressed, and the proper way to implement C would
>> be, like for all word-addressed machines: char=short=int=pointer=36b.
>
>"All" is incorrect.  On the Unisys 2200 series C, Char is 9 bits (a 
>"quarter word")and short is 18 bits (half word).  Long is indeed 36 
>bits, and long long is 72 bits.

If the Unisys 2200 is word-addressed, the proper way is
char=short=int=pointer, too.

They may have done it differently, for some reason, but I expect that
had its costs; slow char and short pointers, and breakage of code that
assumes that int, and all pointer types are freely interchangeable; or
slow pointers across the board (including arrays), but better
compatibility.

>Regardless of your opinion about "wrongness", there is a currently 
>supported C compiler.  I am pretty sure it was developed for the obvious 
>reason of wanting to support porting of existing software and to allow 
>new software to be written in the language for developers who choose to 
>do so.  Neither B nor BCPL would meet those requirements.

And neither does the Unisys 2200 or PDP-10.  Which is why the PDP-10
series has been canceled more than 4 decades ago, and the fate of the
Unisys 2200 is unclear;
<https://en.wikipedia.org/wiki/UNIVAC_1100/2200_series#Unisys_ClearPath_IX_series>
states:

|Unisys's goal was to provide an orderly transition for their 1100/2200
|customers to a more modern architecture.

So apparently the Unisys 2200 is suffering a mirror-image fate as BCPL
and B: While people have built BCPL and B compilers on byte-addressed
machines to run software written in BCPL and B, it was a bad fit, as
one can read in literature about AmigaOS.

And similarly, C is a bad fit for word-addressed machines.  On the
Cray-1 they dealt with it by making char=short=int=long=pointer=64b,
and on the Unisys 2200 they dealt with it by making a C more similar
to one on a byte-addressed machine, which may have caused less
software breakage than the Cray-1 approach, but probably still quite a
lot, and in addition it cost performance.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID: <2026Nov20.185041@mips.complang.tuwien.ac.at>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <1793295922-5857@newsgrouper.org> <11c2si8$i9h4$1@dont-email.me> <2026Oct31.101836@mips.complang.tuwien.ac.at> <11c50qr$176ed$1@dont-email.me> <11c57o4$1iq3$1@gal.iecc.com> <86fqwwm4mk.fsf@linuxsc.com> <2026Nov20.170519@mips.complang.tuwien.ac.at> <11dpuam$3c1ec$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: packaging, Another Kick at Concertina III
Date: Fri, 20 Nov 2026 17:50:41 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 54
Message-ID: <2026Nov20.185041@mips.complang.tuwien.ac.at>
References: <1793295922-5857@newsgrouper.org> <11c2si8$i9h4$1@dont-email.me> <2026Oct31.101836@mips.complang.tuwien.ac.at> <11c50qr$176ed$1@dont-email.me> <11c57o4$1iq3$1@gal.iecc.com> <86fqwwm4mk.fsf@linuxsc.com> <2026Nov20.170519@mips.complang.tuwien.ac.at> <11dpuam$3c1ec$1@dont-email.me>
Injection-Date: Fri, 20 Nov 2026 18:08:29 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3553492"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+fm1Zq4d6DjWD3W303eor5"; posting-host="0a06324a2c9cb3ce4cb3c9eabedef5b7"
Cancel-Lock: sha1:GerqqATsTs/Sc2PWyG7FI+2KyGI= sha256:t7jughF33r5Ymc/89K5+f8VGSyDHBO4i1QdRmr7pg04=
	sha1:6RBz+SlpiyyIuX586xXSXE8or+Y= sha256:C+/kCaSkIM8jWk/Ek1uaOe25w5T37o+KX1Xkaka4uys=
X-newsreader: xrn 10.11