[nhc-users] Debugger related

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Wed May 11 06:13:57 EDT 2005


Arunkumar S Jadhav <arunk at it.iitb.ac.in> writes:

> 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


More information about the Nhc-users mailing list