Notes on C

For more than 25 years, C has been the preferred programming language for implementing operating systems of all kinds — including Linux. The major part of the kernel — with the exception of a few assembly language segments — is programmed in C. Therefore, it is not possible to understand the kernel without a mastery of C. This book assumes that you have already gained sufficient experience with C in userspace programming. This appendix discusses little-used and very specific aspects of C in kernel programming.

The kernel sources are especially designed for compilation with the GNU C compiler.1 This compiler is available for many architectures (far more than are supported by the kernel) and also features numerous enhancements used by the kernel, as discussed in this appendix.

Continue reading here: C1 How the Gnu C Compiler Works

Was this article helpful?

0 0