<?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: about +DSnative of cc in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468649#M680185</link>
    <description>&amp;gt;But project is too big and above all my customer didn't want to recompile.  He ordered me the report which I asked for.&lt;BR /&gt;&lt;BR /&gt;If he doesn't want to recompile, there isn't much to say other than try it.  Compiling for Montecito/Montvale will make things run only a little slower on Madison.  The best thing to do is just run it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the result is same.&lt;BR /&gt;# cc +DSnative sample.c&lt;BR /&gt;&lt;BR /&gt;You need something more complex.  Also if you aren't optimizing, you are wasting performance.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;* tdas is WTEC tool&lt;BR /&gt;&lt;BR /&gt;No need to use that.  Just use -S and look at the .s file.&lt;BR /&gt;&lt;BR /&gt;In fact if you optimize, your program is changed to just:&lt;BR /&gt;printf("sum = %d\n", 7);&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I wonder if +DSmodel using instruction scheduler tuned to the model, It might be affect machine code?&lt;BR /&gt;&lt;BR /&gt;Of course.  But you have to optimize.</description>
    <pubDate>Thu, 30 Jul 2009 05:39:03 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-07-30T05:39:03Z</dc:date>
    <item>
      <title>about +DSnative of cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468646#M680182</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm hk from Korea.&lt;BR /&gt;&lt;BR /&gt;I compiled the c program using +DSnative on 11.31 Montvale processor&lt;BR /&gt;&lt;BR /&gt;But I plan to run my program on 11.31 madison processor.&lt;BR /&gt;&lt;BR /&gt;Compile on :&lt;BR /&gt;HP-UX 11.31 Montvale (dual core cpu, HyperThreading Enabled)&lt;BR /&gt;&lt;BR /&gt;Run on :&lt;BR /&gt;HP-UX 11.31, Madison(single core, NO Hyper Threading supported) &lt;BR /&gt;&lt;BR /&gt;So I'm worrying about +DSnative on montvale affect my binary program on madison.&lt;BR /&gt;&lt;BR /&gt;I want to know how +DSnative work exactly. &lt;BR /&gt;&lt;BR /&gt;I'm sure it check the processor type on PARISC (uname -m)&lt;BR /&gt;&lt;BR /&gt;But the result of "uname -m" is all same in IA2.&lt;BR /&gt;+DSnative check the type of processor another way on IA2 or it's all same working as +DSitanium2 ?&lt;BR /&gt;&lt;BR /&gt;Help plz. I can't find the answer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;* How to see a processor type:&lt;BR /&gt;# machinfo &lt;BR /&gt;Madison - Intel(R) Itanium 2 processor &lt;BR /&gt;Montecito - Intel(R) Itanium 2 9000 series &lt;BR /&gt;Montvale - Intel(R) Itanium 2 9100 series</description>
      <pubDate>Wed, 29 Jul 2009 00:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468646#M680182</guid>
      <dc:creator>hk_3</dc:creator>
      <dc:date>2009-07-29T00:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: about +DSnative of cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468647#M680183</link>
      <description>&amp;gt;I compiled a C program using +DSnative on 11.31 Montvale processor. But I plan to run my program on 11.31 Madison processor.&lt;BR /&gt;&lt;BR /&gt;There should be little difference in the code generated for Montvale vs Madison.  If you are worried you can use +DSblended.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I'm sure it check the processor type on PA-RISC (uname -m)&lt;BR /&gt;&lt;BR /&gt;The PA compiler knows how to get the processor type and doesn't use uname(2).&lt;BR /&gt;Similarly for IPF, the compiler gets the processor type.</description>
      <pubDate>Wed, 29 Jul 2009 05:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468647#M680183</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-29T05:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: about +DSnative of cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468648#M680184</link>
      <description>Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;I know It would be fine compile again using +DSitanium2 or +DSblended on Montvale.&lt;BR /&gt;&lt;BR /&gt;But project is too big and above all my customer didn't want to recompile. &lt;BR /&gt;He ordered me the report which I asked for. &lt;BR /&gt;&lt;BR /&gt;So I have to invest how it affect the binary file.&lt;BR /&gt;I converted sample program into machine code using +DSnative and +DSitanium2.&lt;BR /&gt;the result is same.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat sample.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;int i,j,a,b,c,d,e,f,g,h,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;&lt;BR /&gt;int sum;&lt;BR /&gt;a = 2;&lt;BR /&gt;b = 2;&lt;BR /&gt;c = 2;&lt;BR /&gt;d = 2;&lt;BR /&gt;e = 2;&lt;BR /&gt;sum = a +b;&lt;BR /&gt;sum = sum +e;&lt;BR /&gt;f = 2;&lt;BR /&gt;g = 2;&lt;BR /&gt;h = 2;&lt;BR /&gt;i = 2;&lt;BR /&gt;k = 2;&lt;BR /&gt;j = 5;&lt;BR /&gt;l = 5;&lt;BR /&gt;m = 5;&lt;BR /&gt;n = 5;&lt;BR /&gt;o = 5;&lt;BR /&gt;p = 5;&lt;BR /&gt;sum = sum + n+ o;&lt;BR /&gt;q = 5;&lt;BR /&gt;r = 5;&lt;BR /&gt;s = 5;&lt;BR /&gt;t = 5;&lt;BR /&gt;u = 5;&lt;BR /&gt;v = 5;&lt;BR /&gt;w = 5;&lt;BR /&gt;y = 5;&lt;BR /&gt;z = 5;&lt;BR /&gt;x = 5;&lt;BR /&gt;sum = q + j;&lt;BR /&gt;sum = r + s;&lt;BR /&gt;sum = i + j;&lt;BR /&gt;&lt;BR /&gt;printf("sum = %d\n", sum);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cc -o sample +DSnative sample.c&lt;BR /&gt;# tdas -F main sample &amp;gt; native.out&lt;BR /&gt;# cc -o sample +DSitanium2 sample.c&lt;BR /&gt;# tdas -F main sample &amp;gt; itanium2.out&lt;BR /&gt;# diff native.out itanium2.out&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;* tdas is wtec tool&lt;BR /&gt;&lt;BR /&gt;Once I compiled sample.c using +DSitanium, (not +DSitanium"2"), converting into machine code, It looks scheduling instructions in a different order.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I wonder if +DSmodel using instruction scheduler tuned to the model, It might be affect building machine code?&lt;BR /&gt;&lt;BR /&gt;I'm sorry I'm not good at English.&lt;BR /&gt;If you don't understand my words, plz tell me. I'll try to.&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 30 Jul 2009 00:37:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468648#M680184</guid>
      <dc:creator>hk_3</dc:creator>
      <dc:date>2009-07-30T00:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: about +DSnative of cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468649#M680185</link>
      <description>&amp;gt;But project is too big and above all my customer didn't want to recompile.  He ordered me the report which I asked for.&lt;BR /&gt;&lt;BR /&gt;If he doesn't want to recompile, there isn't much to say other than try it.  Compiling for Montecito/Montvale will make things run only a little slower on Madison.  The best thing to do is just run it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the result is same.&lt;BR /&gt;# cc +DSnative sample.c&lt;BR /&gt;&lt;BR /&gt;You need something more complex.  Also if you aren't optimizing, you are wasting performance.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;* tdas is WTEC tool&lt;BR /&gt;&lt;BR /&gt;No need to use that.  Just use -S and look at the .s file.&lt;BR /&gt;&lt;BR /&gt;In fact if you optimize, your program is changed to just:&lt;BR /&gt;printf("sum = %d\n", 7);&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I wonder if +DSmodel using instruction scheduler tuned to the model, It might be affect machine code?&lt;BR /&gt;&lt;BR /&gt;Of course.  But you have to optimize.</description>
      <pubDate>Thu, 30 Jul 2009 05:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468649#M680185</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-30T05:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: about +DSnative of cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468650#M680186</link>
      <description>Yeah, You're right.&lt;BR /&gt;Just run it. That's all.&lt;BR /&gt;&lt;BR /&gt;But if the report says there's big difference for performance.&lt;BR /&gt;My customer might be agree to recompile.&lt;BR /&gt;&lt;BR /&gt;Anyway, I've been wasting my time for unproductable question. I'll suggest him between "run it" or "recompile it" &lt;BR /&gt;that'll be more effiency to this project &lt;BR /&gt;&lt;BR /&gt;And your answer gave me a big help.&lt;BR /&gt;&lt;BR /&gt;Thank you so much.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jul 2009 00:19:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468650#M680186</guid>
      <dc:creator>hk_3</dc:creator>
      <dc:date>2009-07-31T00:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: about +DSnative of cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468651#M680187</link>
      <description>&amp;gt;But if the report says there's big difference for performance.&lt;BR /&gt;&lt;BR /&gt;We don't think there will be anything big.  But  an important point is the optimization level.</description>
      <pubDate>Fri, 31 Jul 2009 02:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-dsnative-of-cc/m-p/4468651#M680187</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-31T02:49:54Z</dc:date>
    </item>
  </channel>
</rss>

