The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: cowan@mercury.ccil.org (John Cowan)
Subject: [TUHS] Documentation on B language?
Date: Wed, 9 Mar 2016 16:43:02 -0500	[thread overview]
Message-ID: <20160309214302.GC9515@mercury.ccil.org> (raw)
In-Reply-To: <201603092134.u29LYp9Q010455@coolidge.cs.Dartmouth.EDU>

Doug McIlroy scripsit:

> According to Ken, the inspiration for ++ and -- came from the PDP-7
> hardware, not from previous languages.  The PDP-7 supported only ++i,
> where i had to be one of only a few memory addresses. "For symmetry",
> Ken says, he put all four operations in B. (And he did not use the
> hardware autoincrement.)

On the 12-bit PDP-8, the relevant addresses were 0010-0017; any indirect
reference through any such location was automatically preincremented.
However, they were hard to use in libraries, because allocation of this
incredibly scarce resource had to be manually managed, which meant in
effect that only the main program could use any of them, and because
PDP-8 programmers weren't in the habit of using them, they often were
simply ignored.  It was easy enough to add an extra ISZ (increment and
skip if zero) operation before the indirection.

-- 
John Cowan          http://www.ccil.org/~cowan        cowan at ccil.org
Wer es in kleinen Dingen mit der Wahrheit nicht ernst nimmt, dem kann
man auch in grossen Dingen nicht vertrauen.  --Albert Einstein on honesty


  reply	other threads:[~2016-03-09 21:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-09 21:34 Doug McIlroy
2016-03-09 21:43 ` John Cowan [this message]
2016-03-10 18:09   ` scj
  -- strict thread matches above, loose matches on Subject: below --
2016-03-09 12:34 Noel Chiappa
2016-03-08 13:01 Doug McIlroy
2016-03-08 18:00 ` John Cowan
2016-03-08 19:10   ` Andru Luvisi
2016-03-08 19:43     ` John Cowan
2016-03-08 23:13       ` Tim Bradshaw
2016-03-09 11:09   ` Christian Neukirchen
2016-03-09 11:29     ` Brantley Coile
2016-03-07  0:57 Norman Wilson
2016-03-07  8:39 ` Angelo Papenhoff
2016-03-07  0:20 Warren Toomey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160309214302.GC9515@mercury.ccil.org \
    --to=cowan@mercury.ccil.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).