<?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: executable size 4 times greater than in linux in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333654#M671233</link>
    <description>&amp;gt;Can you let me know how to reduce the text size?&lt;BR /&gt;&lt;BR /&gt;Why?  Text size is free.  Only data matters, especially if you have lots of users of the program.&lt;BR /&gt;&lt;BR /&gt;The increase of instructions is related to PA-RISC vs CISC.&lt;BR /&gt;Also using -AA may bloat it with templates.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;This will help me in making my installer smaller which is the main reason.&lt;BR /&gt;&lt;BR /&gt;Does it fit on a CD?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Where is the size increasing, what can I do to decrease it?&lt;BR /&gt;&lt;BR /&gt;Basically you are asking something that has no easy answers.  I suppose you could use nm(1) and look at the sizes of each function.</description>
    <pubDate>Thu, 08 Jan 2009 19:16:23 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-01-08T19:16:23Z</dc:date>
    <item>
      <title>executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333648#M671227</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I just wanted to know that why are hp ux binaries bigger in size? I have red hat linux and hp pa-risc machine and all the binaries are 4 times that of linux. I have done strip on all the binaries for both linux and hp ux. &lt;BR /&gt;&lt;BR /&gt;Can someone assist me on this -- whether something is fixed in hp to be of greater size than actually be utilized i.e. code, data, stack or bss etc?&lt;BR /&gt;&lt;BR /&gt;Any help in this matter would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Raj</description>
      <pubDate>Wed, 07 Jan 2009 22:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333648#M671227</guid>
      <dc:creator>uiqbal</dc:creator>
      <dc:date>2009-01-07T22:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333649#M671228</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;See here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1231370808967+28353475&amp;amp;threadId=1180747" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1231370808967+28353475&amp;amp;threadId=1180747&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1231370916712+28353475&amp;amp;threadId=1266871" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1231370916712+28353475&amp;amp;threadId=1266871&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 07 Jan 2009 23:29:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333649#M671228</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-01-07T23:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333650#M671229</link>
      <description>As mentioned in my replies in the threads that JRF mentioned, it helps to compare just the important parts of your executables.&lt;BR /&gt;What does size(1) show for you on HP-UX vs linux?&lt;BR /&gt;&lt;BR /&gt;Note: That Integrity may be another 2 X bigger than PA.</description>
      <pubDate>Thu, 08 Jan 2009 03:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333650#M671229</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-08T03:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333651#M671230</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes I have checked with the size command -- Here are my analysis on the portable code binaries.&lt;BR /&gt;&lt;BR /&gt;On suse linux the size command gives this.&lt;BR /&gt;&lt;BR /&gt;-----------------&lt;BR /&gt;suse01&amp;gt; size cr_api&lt;BR /&gt;14724952(text)&lt;BR /&gt;919444(data)&lt;BR /&gt;239856(bss)&lt;BR /&gt;15884252= 15 MB (dec)&lt;BR /&gt;f25fdc (hex)&lt;BR /&gt;cr_api.linux (filename)&lt;BR /&gt;&lt;BR /&gt;14 mb TEXT SIZE&lt;BR /&gt;-----------------&lt;BR /&gt;hpparisc&amp;gt;size cr_api&lt;BR /&gt;&lt;BR /&gt;23738645 + 4586336 + 188380 = (total)28513361 = 27 MB&lt;BR /&gt;&lt;BR /&gt;22 MB TEXT&lt;BR /&gt;-----------------&lt;BR /&gt;Total difference in text size is 8 MB which is almost the main difference. &lt;BR /&gt;&lt;BR /&gt;Can you let me know how to reduce the text size -- I have tried using -O for optimization on space but doesn't give anything. &lt;BR /&gt;&lt;BR /&gt;strip is run on both the binaries.&lt;BR /&gt;&lt;BR /&gt;For hp my compile and link flags are this using aCC&lt;BR /&gt;&lt;BR /&gt;CSPEC_COPTS = +Z +DAportable -L.&lt;BR /&gt;-L$(BUILD_DIR) -AA -O2 -mt -DCR_BIG_ENDIAN -DCR_INLINE_NOT_SUPPORTED                     -D_LARGEFILE64_SOURCE&lt;BR /&gt;&lt;BR /&gt;CSPEC_LOPTS = +DAportable -Wl,+s -L. -L$(BUILD_DIR) -AA -mt -lm -lsec -lpthread&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Raj</description>
      <pubDate>Thu, 08 Jan 2009 14:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333651#M671230</guid>
      <dc:creator>uiqbal</dc:creator>
      <dc:date>2009-01-08T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333652#M671231</link>
      <description>HI (again) Raj:&lt;BR /&gt;&lt;BR /&gt;Why do you care whether a binary for one architecture is larger or smaller than a binary executable for another?&lt;BR /&gt;&lt;BR /&gt;What matters to me is optimization at runtime together with clarity and maintainablity of the source.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 08 Jan 2009 14:39:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333652#M671231</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-01-08T14:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333653#M671232</link>
      <description>Dear JRF,&lt;BR /&gt;&lt;BR /&gt;Ok fine i will do with the optimization and clarity but i just wanted to know why is the size different -- can i do some steps to reduce the text(code) size?&lt;BR /&gt;&lt;BR /&gt;This will help me in making my installer smaller which is the main reason.&lt;BR /&gt;&lt;BR /&gt;Where is the size increasing, what can i do to decrease it?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Raja</description>
      <pubDate>Thu, 08 Jan 2009 15:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333653#M671232</guid>
      <dc:creator>uiqbal</dc:creator>
      <dc:date>2009-01-08T15:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333654#M671233</link>
      <description>&amp;gt;Can you let me know how to reduce the text size?&lt;BR /&gt;&lt;BR /&gt;Why?  Text size is free.  Only data matters, especially if you have lots of users of the program.&lt;BR /&gt;&lt;BR /&gt;The increase of instructions is related to PA-RISC vs CISC.&lt;BR /&gt;Also using -AA may bloat it with templates.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;This will help me in making my installer smaller which is the main reason.&lt;BR /&gt;&lt;BR /&gt;Does it fit on a CD?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Where is the size increasing, what can I do to decrease it?&lt;BR /&gt;&lt;BR /&gt;Basically you are asking something that has no easy answers.  I suppose you could use nm(1) and look at the sizes of each function.</description>
      <pubDate>Thu, 08 Jan 2009 19:16:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333654#M671233</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-08T19:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333655#M671234</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Ok settled -- it has to do something with the RISC architecture but what's the thing with intel itanium binaries being even bigger?&lt;BR /&gt;Does it have even bigger instruction set than RISC&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raja</description>
      <pubDate>Fri, 09 Jan 2009 11:13:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333655#M671234</guid>
      <dc:creator>uiqbal</dc:creator>
      <dc:date>2009-01-09T11:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: executable size 4 times greater than in linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333656#M671235</link>
      <description>&amp;gt;Does it have even bigger instruction set than RISC?&lt;BR /&gt;&lt;BR /&gt;Yes, each instruction bundle is 128 bits.  And if not optimized, lots of NOPs.&lt;BR /&gt;But the size of data should be the similar to PA's.&lt;BR /&gt;Also objects and executables contain lots more fluff.</description>
      <pubDate>Fri, 09 Jan 2009 15:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-size-4-times-greater-than-in-linux/m-p/4333656#M671235</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-09T15:19:11Z</dc:date>
    </item>
  </channel>
</rss>

