How does the gcc -g option affect performance?
Kevin P. Fleming
kpfleming@starnetworks.us
Thu Mar 3 17:57:00 GMT 2005
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.
More information about the Gcc-help
mailing list