I just surfed to Brad Wilson’s web log where he posted a question: What Book do you Want? No offense to Brad, rather than answer his question, I’d like to propose my own: What book do I really want to write?
Some day, if I ever retire from this business and have more time than I know what to do with, the book I really want to write is “How does Hello, World Really work?”. The general idea of this book is that it would follow the life and times of the execution of a simple Hello, World program written in C# using a system-level debugger like Soft ICE. This would give me an excuse to talk about the following set of topics:
- The layout of CIL and metadata in PE files
- How the JIT compiler works
- How the Windows loader works
- How the Win32 API and the Native API interact
- How the cache manager works
- How the file system works
- How I/O is dispatched
- How the CPU dispatches instructions
- How the memory subsystem interacts with the CPU
- How the I/O subsystems (disk, video) interacts with the CPU
The goal is to show how an innocuous line of code like Console.WriteLine( “Hello, World” ); stands on the shoulders of giants, and to give the reader a real look at how modern computers work.
Hey, I can dream, can’t I? ;)