Hi,everyone<div><div><span style="font-family: 'lucida Grande', Verdana; line-height: 23px;"></span><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><br></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><a href="http://www.redhat.com/archives/shrike-list/2003-April/msg00069.html" target="_blank" style="outline: none; cursor: pointer; color: rgb(30, 84, 148);">http://www.r<wbr>edhat.com/ar<wbr>chives/shrik<wbr>e-list/2003-<wbr>April/msg000<wbr>69.html</a></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><a href="http://fedoraproject.org/wiki/StackTraces" target="_blank" style="outline: none; cursor: pointer; color: rgb(30, 84, 148);">http://fedor<wbr>aproject.org<wbr>/wiki/StackT<wbr>races</a></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><a href="http://old-en.opensuse.org/Packaging/Debuginfo" target="_blank" style="outline: none; cursor: pointer; color: rgb(30, 84, 148);">http://old-e<wbr>n.opensuse.o<wbr>rg/Packaging<wbr>/Debuginfo</a></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><br></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;">This document said:"<span style="line-height: 1.5;">passing </span><code style="line-height: 1.5;">-g</code><span style="line-height: 1.5;"> to </span><code style="line-height: 1.5;">gcc</code><span style="line-height: 1.5;"> or </span><code style="line-height: 1.5;">g++"</code><span style="line-height: 1.5;">. And "</span><span style="font-family: 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 18.015625px; background-color: rgb(252, 252, 252);">Note that the default </span><code style="margin: 0px; padding: 0px; font-size: 12px; border: none; background-color: rgb(217, 229, 191); line-height: 18.015625px;">CFLAGS</code><span style="font-family: 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 18.015625px; background-color: rgb(252, 252, 252);"> and </span><code style="margin: 0px; padding: 0px; font-size: 12px; border: none; background-color: rgb(217, 229, 191); line-height: 18.015625px;">CXXFLAGS</code><span style="font-family: 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 18.015625px; background-color: rgb(252, 252, 252);"> of the distro already contain </span><code style="margin: 0px; padding: 0px; font-size: 12px; border: none; background-color: rgb(217, 229, 191); line-height: 18.015625px;">-g</code><span style="font-family: 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 18.015625px; background-color: rgb(252, 252, 252);">, "</span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><span style="line-height: 1.5;"><br></span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><span style="line-height: 1.5;">My question is :</span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><span style="line-height: 1.5;">I build souce code a.c with myself gcc/make configfile.</span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><span style="line-height: 1.5;">first time:      compile a.c with -O2,then get a1.bin</span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><span style="line-height: 1.5;">second time: compile a.c woth -O2 -g,then strip debug symbols.then get a2.bin</span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><span style="line-height: 1.5;"><br></span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><span style="line-height: 1.5;">But i find a2.bin is slower then a1.bin.The performance of a2.bin is 5% slower.</span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><span style="line-height: 1.5;"><br></span></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;">Should a2.bin run as fast as a1.bin?(performance is same?)//Tomorrow i will provide the complete commands.</div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;">Can anyone give some advice?</div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;"><br></div><div style="font-family: 'lucida Grande', Verdana; line-height: 23px;">I find that:rpmbuild run gcc one time with -g -O2,then get a.rpm and a.debuginforpm.<br><br>thanks.<br></div></div></div>