Programming in C

pico:

AWOL:
Not quite nerdy enough. It was developed to aid porting Unix.

Nope. Writing it. If you think the first version of UNIX was written in assembly language, that is a mistake.

Never really searched that deep into the origins of Unix, but unless this Wikipedia article is wrong, C was developed to overcome the shortcomings of B in porting the assembly-coded PDP-7 version of Unix to a PDP-11.

Here's the relevant paragraph:

The origin of C is closely tied to the development of the Unix operating system, originally implemented in assembly language on a PDP-7 by Ritchie and Thompson, incorporating several ideas from colleagues. Eventually they decided to port the operating system to a PDP-11. B's inability to take advantage of some of the PDP-11's features, notably byte addressability, led to the development of an early version of C.

The original PDP-11 version of the Unix system was developed in assembly language. By 1973, with the addition of struct types, the C language had become powerful enough that most of the Unix kernel was rewritten in C. This was one of the first operating system kernels implemented in a language other than assembly. (Earlier instances include the Multics system (written in PL/I), and MCP (Master Control Program) for the Burroughs B5000 written in ALGOL in 1961.)

And here's the page address:

Very interesting (and nerdy) stuff :slight_smile: