C has C secrets

xiaoxiao2021-03-06  83

Author: Alexander zero, beginning on such systems like UNIX / Linux / BSD, C is a very important thing - even for people who never programmed. (Because sometimes the software provided in the source code is required, it is necessary to compile itself, and these software is usually written in C, whether or not a person is familiar with c, he may not notice that there is some hidden in grammar and functions. The secret of the word in the library is the secret ... I. Water is a free substance. C is a free language. This is not because it has free editor (Emacs), free compiler (GCC), and free source level debugger (GDB), but because C has a small rule that is very small - it is easy to put It is all in your own brain. There is no evidence that Dennis Ritchie (right, he and Brian Kernighan completed C language, and Ken Thompson completed UNIX) I know that Laozi has said "the world is taboo and the people are poor, but he seems to know the grammar limit of a language. How much, directly affecting the difficulty of manufacturing its compiler (and its compiler on the requirements of the hardware and hardware configuration) and the time it takes. So "C Remains a Simple and Small Language, Translatable with Simple and Small Compilers." (The Development of the C Language) This, C is almost easy to learn - but because some Other reasons (skilled use of C language requires a deep understanding of computer hardware and software), and C is difficult to understand, this is a later voice. Of course, the syntax of C is too free, so that there is a annual "international difficult C program contest" (http://www.ioccc.org), specifically used to showcase, but can run C language program. Second, the wooden trees are tightly rooted on the ground. C is tightly rooted on the hardware. C The basic data type and operator are completely hardware to support (when the early hardware does not support floating point numbers, there is no float and double), and the data type and calculation of hardware can also be fundamentally c. The data type and operator correspond to it. This brings a speed and hardware access capability that exceeds general advanced languages, so you can use C to write the game such as Quake and Linux such that other advanced languages ​​can not be used. (Other advanced languages ​​can also be used to write games and operating systems, but it is difficult to achieve these two required performance) because of this, sometimes people call C as "intermediate language". Third, gold metal from ore, but is easily processed into needed shapes than ore. C comes from the assembly, but it is easy to write more than the assembly. Although C and hardware combination is very good, it still makes some beneficial abstractions for practical hardware - such as linear memory access. At the same time, it will also need to process the work that is processed to join the function library. (Glib and even have something useful in the Hash table) These features will be liberated in the state of the programs, and do not have to deal with some repetitive work every day to night, which effectively reduces the error rate and protects the programmer. mood. And it abstracted well - it seems to benefit from C from the birth of different compiler informally informal incompections. Many times, continuously new features have been added, and the old character is eliminated. It is used to write Linux's way. Fourth, the performance of soil soil is extraordinary. The expression of C is also extraordinary.

转载请注明原文地址:https://www.9cbs.com/read-98743.html

New Post(0)