This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How does the gcc -g option affect performance?


Madani, Srikanth, VF-DE wrote:

The binary produced with the -g debugging flag, and then stripped will have no symbols; whereas the binary produced without the -g flag will.

That's an oversimplification; if you use strip --strip-debug, you will end up with the same binary as if you had never used -g.


If you use any more aggressive options for strip, then yes, you will lose other symbols that may have been there for legitimate reasons.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]