The C programming Language Kernighan and ritchie describe ansi c in their classic book which is known affectionately as K&R In Ritchie' s words [60]. c is quirky flawed and an enormous success Why the success? Quirky:离奇的 F|awed:有缺陷的
26 The C Programming Language • Kernighan and Ritchie describe ANSI C in their classic book – which is known affectionately as “K&R” . • In Ritchie’s words [60], C is – quirky, – flawed, – and an enormous success. • Why the success? Quirky: 离奇的 Flawed: 有缺陷的
The C programming Language C was closely tied with the Unix operating system C was developed from the beginning as the system programming language for Unix Most of the Unix kernel, and all of its supporting tools and libraries were written in C As Unix became popular in universities in the late 1970s and early 1980s, many people were exposed to c and found that they liked it Since Unix was written almost entirely in C, it could be easily ported to new machines, which created an even wider audience for both c and Unix
27 The C Programming Language • C was closely tied with the Unix operating system. – C was developed from the beginning as the system programming language for Unix. – Most of the Unix kernel, and all of its supporting tools and libraries, were written in C. – As Unix became popular in universities in the late 1970s and early 1980s, many people were exposed to C and found that they liked it. – Since Unix was written almost entirely in C, it could be easily ported to new machines, which created an even wider audience for both C and Unix
The C programming Language C is a small, simple language The design was controlled by a single person, rather than a committee, and the result was a clean consistent design with little baggage The k&r book describes the complete language and standard library, with numerous examples and exercises, in only 261 pages The simplicity of c made it relatively easy to learn and to port to different computers
28 The C Programming Language • C is a small, simple language. – The design was controlled by a single person, rather than a committee, and the result was a clean, consistent design with little baggage. – The K&R book describes the complete language and standard library, with numerous examples and exercises, in only 261 pages. – The simplicity of C made it relatively easy to learn and to port to different computers
The C programming Language C was designed for a practical purpose C was designed to implement the Unix operating system Later, other people found that they could write the programs they wanted, without the language getting in the way
29 The C Programming Language • C was designed for a practical purpose. – C was designed to implement the Unix operating system. – Later, other people found that they could write the programs they wanted, without the language getting in the way
The C programming Language c is the language of choice for system-level programming There is a huge installed based of application- level programs as well
30 The C Programming Language • C is the language of choice for system-level programming • There is a huge installed based of applicationlevel programs as well