Автор: Mike James
Издательство: I/O Press
Год: 2024
Страниц: 245
Язык: английский
Формат: pdf (true), epub
Размер: 10.0 MB
C is a language with a long past and probably a long future. Being one step up from assembler, it keeps the programmer close to the hardware and if you want to understand how your code takes control without all of the abstractions applied in other languages, C is the one to choose. The only problem is that many books and articles on the subject of C are written by programmers who are happier in higher-level languages – they tend to look down on C and try to explain it as if it were a defective Java or some other language.
In Deep C Dives, Mike James provides in-depth exploration of the essence of C, identifying the strengths of its distinctive traits. This reveals that C has a very special place among the programming languages of today as a powerful and versatile option for low-level programming, something that is often overlooked in books written by programmers who would really rather be using a higher-level language. To emphasize the way in which chapters of this book focus on specific topics, they are referred to as “dives”, something that also implies a deep examination of the subject, suitable for programmers who already program in C. The intention is that you will encounter some things that you already know but will come to see them differently. You will also read things that take you into the lesser-understood areas of the C language, which only make sense when you view C as a machine-independent assembly language, which is a good way to find out more about how the machine works and influences the way things are implemented.
Topics delved into include: bit patterns, arithmetic, how C types are different, casting, expressions, the evil for, what’s void, blocks, locals, the stack, heap and static storage, pointers, arrays, multidimensional arrays as pointers, first class functions, structs, type punning, unions, undefined behavior and exceptions.
Скачать Deep C Dives: Adventures in C