by phafu on 5/12/25, 8:45 AM with 2 comments
However I'm not aware of any pre-existing tool that lets me easily do this. The options I currently see are either make gcc output assembly and write a parser for the GNU Assembler format (possibly by reusing the asm-parser of the compiler-explorer project), or write a tool that reads (disassembles) object files directly using elfutils.
Any hints, prior work, further ideas, links to useful resources, or any other kind of help would be much appreciated.
by baobun on 5/12/25, 10:55 AM
If you do want to tie it back to the source, this looks relevant: http://icps.u-strasbg.fr/~pop/gcc-ast.html