3 ms·
So will objdump (or llvm-objdump) with -dS, for that matter (hint: -Mintel or, on older llvm-objdump versions, --x86-asm-syntax=intel), except the line numbers
by mananaysiempre 4y ago
So will objdump (or llvm-objdump) with -dS, for that matter (hint: -Mintel or, on older llvm-objdump versions, --x86-asm-syntax=intel), except the line numbers in both GCC and Clang’s debug info suck in optimized builds. (Not the fault of the debug info, arguably, it’s just that the optimizer rearranges the code to the extent that the notion of line numbers makes little sense.)
- WalterBright 4y ago> the optimizer rearranges the code to the extent that the notion of line numbers makes little sense I remember PhD papers addressing that in the 1980s. Nobody has yet figured out how to revert optimizer hamburger back into source meat.