3 ms·
Most C/C++ compilers support outputting line number information even for optimized code (DWARF for example has a specific mechanism for identifying inlined code
by johncolanduoni 10y ago
Most C/C++ compilers support outputting line number information even for optimized code (DWARF for example has a specific mechanism for identifying inlined code in stack traces). That's more than enough location data to provide something useful.
- MaulingMonkey 10y agoSeeing e.g. the original source in the disassembly window is useful. And the same info lets you do things like: https://gcc.godbolt.org/ https://gcc.godbolt.org/ Taking that information into any sort of "yeah, this still represents the original intent of the author" highlight/lack of highlight/summary as it sounds like azinman2 wants might be a little more difficult. (After all, if you can implement that, why not have your compiler only emit 'sane' code in the first place?)