Encyclopedia > B programming language

  Article Content

B programming language

1. The best-known programming language entitled B is now seen as a transitional phase between BCPL and C, B was mostly the work of Ken Thompson and first appeared in 1969 or thereabouts. It was essentially BCPL stripped of anything Thompson felt he could do without, in order to fit it on very small computers, and with some changes to suit Thomson's tastes, mostly along the lines of reducing the number of non-whitespace characters in a typical program.

Like BCPL and FORTH, B had only one datatype, the computer word. Most operators treated this as an integer (ie, +, -, *, /) but others treated it as a memory address to be dereferenced. In most other ways it looked a lot like an early version of C. A few library functions existed, including some that vaguely resemble functions from the standard IO library in C.

Early implementations were for the DEC[?] PDP-7 and PDP-11 minicomputers running early Unix, and Honeywell 36 bit mainframes running GCOS. The earliest implementations compiled to threaded code. At some stage a native code compiler for the PDP-11 was produced, and at some stage Dennis Ritchie took over maintenance of the compiler.

The typeless nature of B made sense on the Honeywell, PDP-7 and many older computers, but was a problem on the PDP-11 because it was difficult to elegantly access the character data type that the PDP-11 and most modern computers fully support. Ritchie made changes to the language, most notably adding data typing for variables, and circa 1972 B evolved into "New B" and then C.

At that stage B should probably have died, but it continued to see use as late as the 1990s on Honeywell mainframes, and on certain embedded systems, mostly because these poor deprived (and depraved) systems did not have anything better. The highly influential AberMUD was written in B.

A systems language written by Ken Thompson in 1970 mostly for his own use under Unix on the PDP-11. B was later improved by Kerninghan(?) and Ritchie to produce C. B was used as the systems language on Honeywell's GCOS-3.

B was, according to Ken, greatly influenced by BCPL, but the name B had nothing to do with BCPL. B was in fact a revision of an earlier language, bon, named after Ken Thompson's wife, Bonnie.

["The Programming Language B", S.C. Johnson & B.W. Kernighan, CS TR 8, Bell Labs (Jan 1973)].

2. Another language, also called B, was a simple interactive programming language by Lambert Meertens and Steven Pemberton. This B was the predecessor of ABC.

ftp://ftp.uni-kl.de/pub/languages/B.tar.Z

["Draft Proposal for the B Language", Lambert Meertens, CWI, Amsterdam, 1981].

3. See also the B specification language --- Part of this article was originally based on material from FOLDOC, used with permission. Update as needed.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
East Farmingdale, New York

... 0.09% Pacific Islander, 4.52% from other races, and 2.98% from two or more races. 12.72% of the population are Hispanic or Latino of any race. There are 1,693 households ...

 
 
 
This page was created in 24.1 ms