Hey thanks for asking - and yes, in the preface to the book I do explain how I figure this stuff out. But basically I:
- study the C code for a long time
- step through it in GDB a lot
- add printf statements and recompile it to print out debug/trace info
- actually change it to see what would happen if things were written differently.
A lot of hard work! I do the hard work so you don't have to :)
A lot of hard work! I do the hard work so you don't have to :)