This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How does the gcc -g option affect performance?
- From: Vishnu Mahadevan Menon <vishnu_m_menon at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 13 Mar 2005 20:32:48 -0800 (PST)
- Subject: Re: How does the gcc -g option affect performance?
Hi.
> How does the gcc -g option affect performance?
I had asked this question before, and the consensus
seemed to be that,
a) gcc -g doesn't change the executable code that is
produced. It only adds static information to the
binary.
b) The only reason binaries with debug information run
slower is their size.
c) If all the debug information is removed using
"strip", the resulting code is as good as a code
compiled without the "-g" option.
My question is: Is there any *official* gnu
documentation that clearly guarantees the above is the
case? I searched high and low but I haven't come
across any!
I'd really appreciate any help in this matter.
Regards,
Vishnu.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/