News for hackers. Stuff that matters.
Re:When you see a Heisenbug in C, change your compiler's opt... by ambrop7 on Sunday March 02, 2014 @04:15AM (#7328405)
Actually, -g should not change the output of the compiler in any other way than the presence of debug symbols. I can confirm that right here, where I'm building code for an ARM microcontroller, the resulting .bin files produced by objdump are identical (but the .elf are not).

Granted, when the debug symbols end up in the final ELF binary which is executed by an OS, it can still affect execution in subtle ways such as load times.

There are no comments on this comment yet.