• Re: another round of PDP-10, packaging, Another Kick at Concertina III

    From John Levine@johnl@taugh.com to comp.arch on Mon Nov 23 02:42:08 2026
    From Newsgroup: comp.arch

    According to Tim Rentsch <tr.17687@z991.linuxsc.com>:
    The PDP-10 was a 36 bit word addressed machine so the data formats don't
    map onto modern byte addressed machines in a reasonable way.

    It would be difficult, to say the least, to try to squeeze a PDP-10 >architecture into an 8-bit memory system. 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.

    Except that on the PDP-10 we always used 7 bit characters, packed five to a word
    with the low bit sometimes used as a flag to indicate that the five characters were a line number.

    C has a strong assumption that you can sweep through memory with char* pointers which wasn't true on the PDP-10. You could with 9 or 18 bit bytes, but that's not what we used.

    I saw some early C compilers for the -10 but it was dead by the time modern
    C came along. If you wanted to do system progamming in something better than assembler, there was BLISS.
    --
    Regards,
    John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
    Please consider the environment before reading this e-mail. https://jl.ly
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From quadibloc@quadibloc@invalid.com (John Savard) to comp.arch on Mon Nov 23 05:29:35 2026
    From Newsgroup: comp.arch

    On Mon, 23 Nov 2026 02:42:08 -0000 (UTC), John Levine
    <johnl@taugh.com> wrote:

    Except that on the PDP-10 we always used 7 bit characters, packed five to a word
    with the low bit sometimes used as a flag to indicate that the five characters >were a line number.

    C has a strong assumption that you can sweep through memory with char* pointers
    which wasn't true on the PDP-10. You could with 9 or 18 bit bytes, but that's >not what we used.

    Ouch. But I'm surprised that the C compiler wouldn't be written to use standard-sized bytes whenever using char pointers to copy memory...
    and leave the non-standard-sized bytes programmers specified for their calculations alone.

    That, though, would have required an extension to the language to
    indicate which type of "char" you're using for a given variable. If,
    instead, you had to make your choice of 7-bit bytes global... I
    suppose you had to rewrite your compiler to get rid of that assumption
    in order that such a choice wouldn't break it.

    John Savard
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From John Levine@johnl@taugh.com to comp.arch on Mon Nov 23 22:29:59 2026
    From Newsgroup: comp.arch

    According to John Savard <quadibloc@invalid.com>:
    On Mon, 23 Nov 2026 02:42:08 -0000 (UTC), John Levine
    <johnl@taugh.com> wrote:

    Except that on the PDP-10 we always used 7 bit characters, packed five to a word
    with the low bit sometimes used as a flag to indicate that the five characters
    were a line number. ...

    Ouch. But I'm surprised that the C compiler wouldn't be written to use >standard-sized bytes whenever using char pointers to copy memory...
    and leave the non-standard-sized bytes programmers specified for their >calculations alone.

    Routines like memcpy() take arbitrary pointers, cast them to char* and
    then use those to copy arbitrary chunks of memory. You could imagine various workarounds but the lannguage wouldn't be much like the C you had on other machines. If you can't port existing C code, why bother? BLISS worked fine and let you use any byte size you wanted.

    That, though, would have required an extension to the language to
    indicate which type of "char" you're using for a given variable.

    Keeping in mind this was a long time ago, C did have wide chars for a while when people thought 16 bits was enough, but I don't think they were very popular
    and I'm not sure either a 9 or 18 bit wide char would have been either.
    --
    Regards,
    John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
    Please consider the environment before reading this e-mail. https://jl.ly
    --- Synchronet 3.21e-Linux NewsLink 1.2