Browse

C (programming language)

Language · 1972 CE

C is a general-purpose programming language created in 1972 by Dennis Ritchie at Bell Labs. Its first purpose was to build utilities for Unix, and it is still used for operating systems, drivers and embedded systems.

Significance

C gives programmers relatively direct access to CPU features while allowing portable code, and it became one of the most widely used programming languages.

About

C was created by Dennis Ritchie at Bell Labs between 1972 and 1973 as a successor to the B language. Its first purpose was to build utilities for Unix. Unix had been written in assembly language on a PDP-7 by Ritchie and Ken Thompson, then ported to a PDP-11. Thompson had created B, a cut-down version of BCPL, but few utilities were written in it because it was too slow and could not use PDP-11 features such as byte addressability.

In 1971 Ritchie began improving B for the PDP-11, adding a character type, and called the result New B. Through 1972 he added pointers and richer types, a new compiler was written and the language was renamed the language C. The C compiler and some utilities were included in Version 2 Unix. With Version 4 Unix, released in November 1973, the Unix kernel was largely rewritten in C, which by then had struct types. Unix was one of the first operating system kernels implemented in a language other than assembly.

In 1978 Brian Kernighan and Ritchie published The C Programming Language, which served for years as an informal specification and gave the name K&R C. C spread to mainframes, minicomputers and microcomputers including the IBM PC. In 1983 the American National Standards Institute formed the X3J11 committee, and C has been standardized since 1989 by ANSI and then by ISO and IEC. A further standard, C99, appeared in 1999.

C is an imperative procedural language with a static type system. It gives low-level access to memory with minimal runtime support, yet was designed to encourage cross-platform programming. It is used on machines from supercomputers to microcontrollers, and since 2000 it has typically ranked first or second in the TIOBE index.

Connections

In chronicles

Open on the globe · Wikidata Q15777