C3 Summary

C is a Spartan language, and one might be tempted at first glance to equate this with simplicity. However, it is quite the opposite: Despite being frugal, C allows for many tricks of the trade that can be used for good, but can likewise be abused to create unreadable and unmaintainable code. This chapter described some of the more off-standard features of C that are required in kernel development to squeeze the last percents of performance out of hardware. It also briefly introduced you to the internals of the GNU C compiler, and showed you some optimization techniques. Additionally, the chapter described some extensions to the C language that are heavily employed in kernel development.

Finally, this chapter covered some standard data structures that are used all over the kernel sources, and that therefore must be implemented as generically as possible — which again requires you to utilize some of the finer points of C.

Continue reading here: System Startup

Was this article helpful?

0 0