Book Image

Extreme C

By : Kamran Amini
5 (2)
Book Image

Extreme C

5 (2)
By: Kamran Amini

Overview of this book

There’s a lot more to C than knowing the language syntax. The industry looks for developers with a rigorous, scientific understanding of the principles and practices. Extreme C will teach you to use C’s advanced low-level power to write effective, efficient systems. This intensive, practical guide will help you become an expert C programmer. Building on your existing C knowledge, you will master preprocessor directives, macros, conditional compilation, pointers, and much more. You will gain new insight into algorithm design, functions, and structures. You will discover how C helps you squeeze maximum performance out of critical, resource-constrained applications. C still plays a critical role in 21st-century programming, remaining the core language for precision engineering, aviations, space research, and more. This book shows how C works with Unix, how to implement OO principles in C, and fully covers multi-processing. In Extreme C, Amini encourages you to think, question, apply, and experiment for yourself. The book is essential for anybody who wants to take their C to the next level.
Table of Contents (23 chapters)

Summary

We've now completed our two-chapter discussion about Unix. In this chapter, we learned about the following:

  • What a system call is and how it exposes a certain functionality
  • What happens behind the invocation of a system call
  • How a certain system call can be invoked from C code directly
  • How to add a new system call to an existing Unix-like kernel (Linux) and how to recompile the kernel
  • What a monolithic kernel is and how it differs from a microkernel
  • How kernel modules work within a monolithic kernel and how to write a new kernel module for Linux

In the following chapter, we're going to talk about the C standards and the most recent version of C, C18. You will become familiar with the new features introduced as part of it.