Learn Intel 64 assembly language and architecture, become proficient in C, and understand how the programs are compiled and executed down to machine instructions, enabling you to write robust, high-performance code.
Low-Level Programming explains Intel 64 architecture as the result of von Neumann architecture evolution. The book teaches the latest version of the C language (C11) and assembly language from scratch. It covers the entire path from source code to program execution, including generation of ELF object files, and static and dynamic linking. Code examples and exercises are included along with the best code practices. Optimization capabilities and limits of modern compilers are examined, enabling you to balance between program readability and performance. The use of various performance-gain techniques is demonstrated, such as SSE instructions and pre-fetching. Relevant Computer Science topics such as models of computation and formal grammars are addressed, and their practical value explained.
What You'll Learn
Low-Level Programming teaches programmers to:
Freely write in assembly language
Understand the programming model of Intel 64
Write maintainable and robust code in C11
Follow the compilation process and decipher assembly listings
Debug errors in compiled assembly code
Use appropriate models of computation to greatly reduce program complexity
Write performance-critical code
Comprehend the impact of a weak memory model in multi-threaded applications Who This Book Is For Intermediate to advanced programmers and programming students
Covers a little bit of everything (CPU architecture, boot process, assembly, C, linking/loading, performance) in enough detail to be almost entirely uneducational.
Terribly edited with repeat sentences, numerous grammatical and formatting mistakes.
I did learn a few new things though (a bit on linking/loading and code models) so not a complete bust. Thankfully the book is a fairly quick read.
This book fills your technical knowledge gaps, the ones you always avoided or the ones you never had a chance to face. This book is not for learning anything from basic. So, please make sure you have already read a few books about Assembly and C before you hit this road. I recommend: Step by Step Learning Assembly Language in Linux, for Assembly beginners. And also recommend: The C Programming Language, and Modern C books for C beginners.
Feels like a badly edited collection of first-year university college lectures, with half semester spent on Assembly and half semester spent on intro to C. Can't recommend this to experienced programmers (they'll barely learn anything new), and can't recommend this to junior ones (because the purpose of these notes is to be read by a lecturer, not to be understood by students).
And when I say "badly edited" I mean "quite often feels like translated from Russian to English using circa-2005 machine translation software with little to no human oversight".