
11 May
2005
11 May
'05
6:13 a.m.
Arunkumar S Jadhav
Now my doubt: Will the debugger option (-ggdb3) cause the compiler to emit any i386 instructions that wouldn't have been emitted otherwise. In otherwords, does gcc compiler "insert" extra machine (i386 in my case) instructions for the purpose of debugging ?
As I understand it, the -g compilation flag just adds extra information tables to the object file, not extra code. In particular, the fact that you can combine the -g option with -O for optimisation strongly suggests that no extra instructions are emitted. Regards, Malcolm