说明
本文是个人学习用的非官方中英对照译文,原文:https://diveintosystems.org/book/C3-C_debug/summary.html。
原书采用 CC BY-NC-ND 4.0 许可(禁止演绎),请勿公开传播本译文。
标为「译注」「现代更新」的内容是译者补充,不代表原书作者观点;代码与原文逐字一致,未作改动。
3.7. Summary
本章结束了我们对 C 语言的介绍。与其他高级编程语言相比,C 是一门相对小巧的语言,程序员用为数不多的几种基本构造来搭建自己的程序。由于 C 语言的抽象更接近计算机执行的底层机器码,C 程序员写出的代码可以比用其他编程语言提供的更高级抽象写成的等价代码运行得高效得多。尤其是,C 程序员对程序如何使用内存有更多的控制,而这会对程序的性能产生重大影响。在底层控制和效率至关重要的计算机系统编程领域,C 就是那门语言。
This chapter concludes our coverage of the C programming language. Compared to other high-level programming languages, C is a relatively small programming language with a few basic constructs from which a programmer builds their program. Because C language abstractions are closer to the underlying machine code executed by the computer, a C programmer can write code that runs much more efficiently than equivalent code written using the higher-level abstractions provided by other programming languages. In particular, a C programmer has much more control over how their program uses memory, which can have a significant impact on the program’s performance. C is the language of computer systems programming where low-level control and efficiency are crucial.
在后续章节中,我们会用 C 示例来说明计算机系统是如何设计来运行程序的。
In subsequent chapters we use C examples to illustrate how a computer system is designed to run a program.