<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Does debug flag impact a c++ application performance? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607805#M675397</link>
    <description>&amp;gt;Does debug flag impact a C++ application performance?&lt;BR /&gt;&lt;BR /&gt;No, not with -g*, only with the long dead cfront.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I compiled my C++ application with -g0 +d flags.&lt;BR /&gt;&lt;BR /&gt;But turning off inlining with +d will have a negative impact.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: I'd expect the executable to be bigger, so that loading it would use more virtual memory&lt;BR /&gt;&lt;BR /&gt;No, debug info is not loadable.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;generally, when compiling for debug, most people use less optimization, so that a debugger can better correlate instructions in the executable with lines in the source code.&lt;BR /&gt;&lt;BR /&gt;Yes.  Otherwise if you use +Ox, -g has no effect.</description>
    <pubDate>Sat, 27 Mar 2010 08:40:16 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-03-27T08:40:16Z</dc:date>
    <item>
      <title>Does debug flag impact a c++ application performance?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607803#M675395</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I compiled my c++ application with -g0 +d flags.&lt;BR /&gt;&lt;BR /&gt;The compiler I use is aCC.&lt;BR /&gt;&lt;BR /&gt;After compiling with this flags the performance decreased.&lt;BR /&gt;&lt;BR /&gt;As I also others changes in the application, I would like descarting that debug flags is the problem.&lt;BR /&gt;&lt;BR /&gt;Does debug flag impact a c++ application performance?&lt;BR /&gt;&lt;BR /&gt;Thanks in advanace</description>
      <pubDate>Fri, 26 Mar 2010 10:59:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607803#M675395</guid>
      <dc:creator>Paulo123</dc:creator>
      <dc:date>2010-03-26T10:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Does debug flag impact a c++ application performance?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607804#M675396</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Does debug flag impact a c++ application&lt;BR /&gt;&amp;gt; performance?&lt;BR /&gt;&lt;BR /&gt;It might reduce it.  If adding the debug&lt;BR /&gt;flags _improved_ performance, then wouldn't&lt;BR /&gt;everyone use them always?&lt;BR /&gt;&lt;BR /&gt;If nothing else, I'd expect the executable&lt;BR /&gt;to be bigger, so that loading it would use&lt;BR /&gt;more virtual memory (which seems unlikely to&lt;BR /&gt;help performance).  Then, generally, when&lt;BR /&gt;compiling for debug, most people use less (or&lt;BR /&gt;no) compiler optimization, so that a debugger&lt;BR /&gt;can better correlate instructions in the&lt;BR /&gt;executable with lines in the source code.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] I would like [...]&lt;BR /&gt;&lt;BR /&gt;Why not run the experiment, and see what&lt;BR /&gt;happens?</description>
      <pubDate>Fri, 26 Mar 2010 12:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607804#M675396</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-03-26T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does debug flag impact a c++ application performance?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607805#M675397</link>
      <description>&amp;gt;Does debug flag impact a C++ application performance?&lt;BR /&gt;&lt;BR /&gt;No, not with -g*, only with the long dead cfront.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I compiled my C++ application with -g0 +d flags.&lt;BR /&gt;&lt;BR /&gt;But turning off inlining with +d will have a negative impact.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: I'd expect the executable to be bigger, so that loading it would use more virtual memory&lt;BR /&gt;&lt;BR /&gt;No, debug info is not loadable.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;generally, when compiling for debug, most people use less optimization, so that a debugger can better correlate instructions in the executable with lines in the source code.&lt;BR /&gt;&lt;BR /&gt;Yes.  Otherwise if you use +Ox, -g has no effect.</description>
      <pubDate>Sat, 27 Mar 2010 08:40:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607805#M675397</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-27T08:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Does debug flag impact a c++ application performance?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607806#M675398</link>
      <description>The problem is, I have a coredump problem (production enviroment), and I can't debug my core file because the application is not compiled with debug flags.&lt;BR /&gt;&lt;BR /&gt;So I compiled the application with -g0 +d to have those informations.&lt;BR /&gt;&lt;BR /&gt;But in production the performance decreased.&lt;BR /&gt;&lt;BR /&gt;So, what's the better option I have to compile with debug flag without impact the application performance?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 27 Mar 2010 20:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607806#M675398</guid>
      <dc:creator>Paulo123</dc:creator>
      <dc:date>2010-03-27T20:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Does debug flag impact a c++ application performance?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607807#M675399</link>
      <description>&amp;gt;I have a coredump problem (production environment), and I can't debug my core file because the application is not compiled with debug flags.&lt;BR /&gt;&lt;BR /&gt;Can you provide a stack trace?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;So I compiled the application with -g0 +d to have those info.&lt;BR /&gt;&lt;BR /&gt;You should try to debug without +d.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;what's the better option I have to compile with debug flag without impact the application performance?&lt;BR /&gt;&lt;BR /&gt;Why do you care about performance if you are debugging?  You add -g0, debug, then remove it.  Or do you need to debug at remote sites, for your customers?</description>
      <pubDate>Sun, 28 Mar 2010 09:21:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607807#M675399</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-28T09:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Does debug flag impact a c++ application performance?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607808#M675400</link>
      <description>&amp;gt;Can you provide a stack trace?&lt;BR /&gt;&lt;BR /&gt;I know what's happening in the coredump, but I need the information of some variables to fix it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You should try to debug without +d.&lt;BR /&gt;&lt;BR /&gt;Ok, without +d I can have the same performance between -g0 and without -g0.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Why do you care about performance if you are debugging? &lt;BR /&gt;&lt;BR /&gt;Because the coredump just occurs in my customer enviroment. In addition, different coredumps frequently occurs, so I need that my application always runs with debug flag, to help me to analyse core files.</description>
      <pubDate>Sun, 28 Mar 2010 18:04:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607808#M675400</guid>
      <dc:creator>Paulo123</dc:creator>
      <dc:date>2010-03-28T18:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Does debug flag impact a c++ application performance?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607809#M675401</link>
      <description>&amp;gt;I know what's happening in the coredump,&lt;BR /&gt;&lt;BR /&gt;It's in your code and it's obvious?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;without +d I can have the same performance between -g0 and without -g0.&lt;BR /&gt;&lt;BR /&gt;Yes.&lt;BR /&gt;I assume you know about +noobjdebug?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 28 Mar 2010 19:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-debug-flag-impact-a-c-application-performance/m-p/4607809#M675401</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-28T19:52:41Z</dc:date>
    </item>
  </channel>
</rss>

