The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...

What really happens between writing a line of code and watching a program run? Go beneath the surface of Windows, Linux and Apple executables with three in-depth technical guides that reveal how binaries are built, linked, loaded and executed. From PE and ELF to Mach-O, discover the structures and mechanisms that make modern operating systems work.
Bought separately
$105
Minimum price
$59.00
$79.00
About the Bundle
Explore the inner workings of executable files across the three major desktop operating system ecosystems with this collection of in-depth technical references. Covering Windows, Linux and Unix-like systems and Apple's platforms, this bundle takes you beyond the surface of binary formats and explains how programs are structured, built, linked, loaded and executed.
The Portable Executable and COFF File Format dives into the binary formats used by Windows. It covers everything from COFF object files and PE headers to sections, imports, relocations, loader internals and security features. It also includes practical C++ implementations that gradually build into a complete PE analysis tool.
The Executable and Linkable Format explores ELF, the format behind executables and shared libraries on Linux and other Unix-like systems. It walks through its structures, linking and loading mechanisms, dynamic linking and runtime execution, with practical C programs for parsing and analyzing real binaries.
The Mach-O File Format focuses on Apple's executable format, covering its architecture, load commands, dynamic linking, code signing and runtime behavior across macOS, iOS and other Apple platforms. It also includes hands-on C, C++ and Python examples for building a practical Mach-O analysis toolkit.
Whether you work in systems programming, compiler development, reverse engineering or software security, this bundle gives you a solid technical foundation for understanding how executable files work under the hood. Each book combines detailed explanations with practical code and real-world examples, making the collection useful both as a learning resource and as a reference for deeper technical work.
About the Books
This book provides a complete, implementation-oriented technical reference on the Portable Executable (PE) and Common Object File Format (COFF) used by Microsoft Windows. Starting from historical origins and design goals, it progresses systematically through every header, structure, section and metadata format that composes a PE image. The book covers the full lifecycle from source compilation through COFF object generation, linking, loader validation, memory mapping, import resolution and process execution. It includes detailed analysis of Windows loader internals, security features such as Control Flow Guard and Authenticode, cross-architecture differences between x86, x64 and ARM64 and progressive C++ implementations that build into a production-quality PE analysis tool capable of parsing, validating and inspecting real Windows binaries with rigorous bounds checking and error handling.
This book is a comprehensive technical reference for the ELF binary format as used on modern Unix-like systems. It takes you from the fundamental concepts through every data structure, algorithm and system mechanism, to an implementation-level mastery of how ELF files are built, loaded, linked and executed. Every chapter is grounded in primary specifications and real-world examples, with complete C programs that parse and analyze ELF binaries. If you write compilers, linkers, operating systems, reverse-engineering tools, or security software, this is the book you need.
This book provides a comprehensive, implementation-level treatment of the Mach-O binary format used across all Apple platforms. It progresses from foundational computer science concepts through the complete Mach-O specification, dynamic linking architecture, modern optimization mechanisms, code signing and practical binary analysis. The text includes annotated structure definitions, hexadecimal walkthroughs, cross-referenced load command documentation and a substantial collection of working C, C++ and Python code examples that together form a complete Mach-O analysis toolkit. It is intended as a definitive reference for systems programmers, compiler and toolchain engineers, reverse engineers and security researchers who need to understand how executables are structured, generated, linked, loaded and executed on macOS, iOS, watchOS, tvOS and visionOS.
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.