3 ms·
This is a nice writeup, especially the part about the import binding FSA! These kinds of little state machines show in all sorts of image format and image forma
by woodruffw 3y ago
This is a nice writeup, especially the part about the import binding FSA! These kinds of little state machines show in all sorts of image format and image format-adjacent places, like DWARF's line program[1] and location expression encoding.
(Having written parsers for all three, I think Mach-O is the best "major" program image format. It's certainly the most well abstracted.)
[1]: https://swatinem.de/blog/dwarf-lines/ https://swatinem.de/blog/dwarf-lines/
- detourdog 3y agoYes, I enjoyed the write-up. I think for the same reasons as you. I found it easy to trace the program control through successive library loading. I have always been excited about Apple optimizing it's silicon for the abstractions used by mach.