Search Results
7/7/2025, 5:36:11 PM
>>105824091
>Are there any good books on compilers and debuggers that go through the fundamentals of how they work, etc.like those computer sci books that teach you about the fundamentals of computers like processrors, asm, binary, etc? How did you guys learn about compilers and debuggers?
I've only written an instruction-level debugger for linux/arm but all the required info was in man ptrace, where poke/peektext are used to insert/remove bkpt #0 (trickier on archs with variable width instructions), and where getregs/cont is used to advance to the next pc
A source-level debugger on linux uses dwarf info where dwarf_addrdie, dwarf_getsrc_die, and dward_lineno finds the correspondence between the current address and source location, it gets complicated when there are multiple src files or cus, I began implementing it but didn't finish besides single src assembly programs
On compilers there are the usual books (dragon and appel) but I quite like compiler journals like these: https://github.com/DoctorWkt/acwj
>Are there any good books on compilers and debuggers that go through the fundamentals of how they work, etc.like those computer sci books that teach you about the fundamentals of computers like processrors, asm, binary, etc? How did you guys learn about compilers and debuggers?
I've only written an instruction-level debugger for linux/arm but all the required info was in man ptrace, where poke/peektext are used to insert/remove bkpt #0 (trickier on archs with variable width instructions), and where getregs/cont is used to advance to the next pc
A source-level debugger on linux uses dwarf info where dwarf_addrdie, dwarf_getsrc_die, and dward_lineno finds the correspondence between the current address and source location, it gets complicated when there are multiple src files or cus, I began implementing it but didn't finish besides single src assembly programs
On compilers there are the usual books (dragon and appel) but I quite like compiler journals like these: https://github.com/DoctorWkt/acwj
Page 1