<?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: size of binaries/libraries are almost 2.5 times then other platforms in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108613#M92604</link>
    <description>&amp;gt;I got your point about the text data segments. I will be looking at the size after increasing the optim level.&lt;BR /&gt;&lt;BR /&gt;So how does the output of size(1) compare for each of the 3 values, for PA-RISC and other architectures?</description>
    <pubDate>Wed, 28 Nov 2007 22:19:35 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-11-28T22:19:35Z</dc:date>
    <item>
      <title>size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108607#M92598</link>
      <description>Hi ,&lt;BR /&gt;I am using GCC 4.1 to compile my source code on HPUX 11.23 and result is libraries/binaries size are 2.5 times then other platforms(like Linux/Solaris).&lt;BR /&gt;&lt;BR /&gt;Below is the way I am compiling my source code.&lt;BR /&gt;&lt;BR /&gt;.o compilation&lt;BR /&gt;g++ -Wall -c -fPIC -D_REENTRANT  -D_PSTAT64 -DPTHREAD_COMPAT_MODE -DREENTRANT&lt;BR /&gt;&lt;BR /&gt;shared library &lt;BR /&gt;gcc -liconv  -fPIC -shared   -o libtest.sl. -Wl,+s,+nodefaultrpath,+b/opt/install/lib -lgcc_s -lpthread test.o -lpthread;&lt;BR /&gt;&lt;BR /&gt;executable&lt;BR /&gt;g++    -Wl,+s,+nodefaultrpath,+b/opt/install/lib-D_PSTAT64  -lgcc_s -lstdc++ -lpthread -o test executable.o -ltest &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone please let me know other than increasing the optimization level any methods/flags to decrease the size of libraries and binaries. ?&lt;BR /&gt;&lt;BR /&gt;Or while releasing can I decrease the size ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance ,&lt;BR /&gt;Pramod</description>
      <pubDate>Wed, 28 Nov 2007 00:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108607#M92598</guid>
      <dc:creator>pramodsharma</dc:creator>
      <dc:date>2007-11-28T00:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108608#M92599</link>
      <description>I wonder if the hardware has something to do&lt;BR /&gt;with this.  (If you're running on an IA64&lt;BR /&gt;system, try it on a PA-RISC system.)</description>
      <pubDate>Wed, 28 Nov 2007 00:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108608#M92599</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-28T00:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108609#M92600</link>
      <description>No it's PA-RISC architecture only. As of now we are not supporting IA architecture.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2007 00:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108609#M92600</guid>
      <dc:creator>pramodsharma</dc:creator>
      <dc:date>2007-11-28T00:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108610#M92601</link>
      <description>A quick help will be appreciated as we are near to release and suddenly size is becoming issue now.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2007 00:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108610#M92601</guid>
      <dc:creator>pramodsharma</dc:creator>
      <dc:date>2007-11-28T00:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108611#M92602</link>
      <description>&amp;gt;I am using GCC 4.1 to compile my source code on HPUX 11.23 and result is libraries/binaries size are 2.5 times then other platforms(like Linux/Solaris).&lt;BR /&gt;&lt;BR /&gt;I would expect this even more so with IPF.&lt;BR /&gt;How are you comparing the sizes?  With size(1) or ll(1)?  The SOM format has a lot of bloat, that won't show up in size(1).&lt;BR /&gt;&lt;BR /&gt;If it isn't in size(1) text and data, you may want to just ignore the size increase.  This bloat isn't loaded into memory.&lt;BR /&gt;For a better picture, you can use "odump -sommap" on a executable or shlib.&lt;BR /&gt;&lt;BR /&gt;Increasing the opt level may decrease the text size but higher levels may increase it with lots of inlining or loop unrolling.&lt;BR /&gt;&lt;BR /&gt;You can't decrease data.&lt;BR /&gt;&lt;BR /&gt;Have you tried compiling with aC++ do see if it has the same size increase?&lt;BR /&gt;&lt;BR /&gt;You can of course strip these but that would decrease debuggability and supportability.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;suddenly size is becoming issue now?&lt;BR /&gt;&lt;BR /&gt;Why?  You need two CDs?  You could gzip things and gunzip when you install.  swinstall supports that.</description>
      <pubDate>Wed, 28 Nov 2007 05:36:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108611#M92602</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-28T05:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108612#M92603</link>
      <description>Thanks. But I am already doing the stripping of my binaries/libraries.&lt;BR /&gt;&lt;BR /&gt;I got your point about the text data segments. I will be looking at the size after increasing the optim level.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2007 21:57:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108612#M92603</guid>
      <dc:creator>pramodsharma</dc:creator>
      <dc:date>2007-11-28T21:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108613#M92604</link>
      <description>&amp;gt;I got your point about the text data segments. I will be looking at the size after increasing the optim level.&lt;BR /&gt;&lt;BR /&gt;So how does the output of size(1) compare for each of the 3 values, for PA-RISC and other architectures?</description>
      <pubDate>Wed, 28 Nov 2007 22:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108613#M92604</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-28T22:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108614#M92605</link>
      <description>That I had not done yet. Will update once I go thorugh it.</description>
      <pubDate>Wed, 28 Nov 2007 22:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108614#M92605</guid>
      <dc:creator>pramodsharma</dc:creator>
      <dc:date>2007-11-28T22:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108615#M92606</link>
      <description>Dennis,&lt;BR /&gt;Do you see any issue here  especially &lt;BR /&gt;"00001000  0fc51a  36.1%  subspace 0 ($SHLIB_INFO$)" ?&lt;BR /&gt;&lt;BR /&gt;What does this means and taking the maximum size?&lt;BR /&gt;&lt;BR /&gt;Output of odump -sommap &lt;LIB&gt; &lt;BR /&gt;&lt;BR /&gt;  Start    Size       %  Area&lt;BR /&gt;--------  ------  -----  ----&lt;BR /&gt;00000000  000080   0.0%  SOM Header&lt;BR /&gt;00000080  000064   0.0%  Aux Header&lt;BR /&gt;000000e4  00003c   0.0%  Init Pointers&lt;BR /&gt;00000120  000048   0.0%  Space Dict&lt;BR /&gt;00000168  000398   0.0%  Subspace Dict&lt;BR /&gt;00000500  00016c   0.0%  Space Strings&lt;BR /&gt;0000066c  000994   0.1%  (unused)&lt;BR /&gt;00001000  0fc51a  36.1%  subspace 0 ($SHLIB_INFO$)&lt;BR /&gt;000fd51a  000002   0.0%  (unused)&lt;BR /&gt;000fd51c  000950   0.1%  subspace 1 ($MILLICODE$)&lt;BR /&gt;000fde6c  000004   0.0%  (unused)&lt;BR /&gt;000fde70  01fec8   4.6%  subspace 2 ($CODE$)&lt;BR /&gt;0011dd38  01e5d8   4.4%  subspace 3 ($CODE$)&lt;BR /&gt;0013c310  000004   0.0%  (unused)&lt;BR /&gt;0013c314  0205ac   4.6%  subspace 4 ($CODE$)&lt;BR /&gt;0015c8c0  000004   0.0%  (unused)&lt;BR /&gt;0015c8c4  01fc04   4.5%  subspace 5 ($CODE$)&lt;BR /&gt;0017c4c8  01caf8   4.1%  subspace 6 ($CODE$)&lt;BR /&gt;00198fc0  000004   0.0%  (unused)&lt;BR /&gt;00198fc4  02025c   4.6%  subspace 7 ($CODE$)&lt;BR /&gt;001b9220  0201b8   4.6%  subspace 8 ($CODE$)&lt;BR /&gt;001d93d8  000004   0.0%  (unused)&lt;BR /&gt;001d93dc  02050c   4.6%  subspace 9 ($CODE$)&lt;BR /&gt;001f98e8  000004   0.0%  (unused)&lt;BR /&gt;001f98ec  02030c   4.6%  subspace 10 ($CODE$)&lt;BR /&gt;00219bf8  000004   0.0%  (unused)&lt;BR /&gt;00219bfc  02028c   4.6%  subspace 11 ($CODE$)&lt;BR /&gt;00239e88  020288   4.6%  subspace 12 ($CODE$)&lt;BR /&gt;0025a110  000004   0.0%  (unused)&lt;BR /&gt;0025a114  0167c4   3.2%  subspace 13 ($CODE$)&lt;BR /&gt;002708d8  016200   3.2%  subspace 14 ($UNWIND_START$)&lt;BR /&gt;00286ad8  00ef50   2.1%  subspace 15 ($UNWIND_END$)&lt;BR /&gt;00295a28  000004   0.0%  subspace 16 ($RECOVER_END$)&lt;BR /&gt;00295a2c  0005d4   0.1%  (unused)&lt;BR /&gt;00296000  000004   0.0%  subspace 17 ($SHORTDATA$INIT$)&lt;BR /&gt;00296004  000004   0.0%  subspace 18 ($SHORTDATA$FINI$)&lt;BR /&gt;00296008  006088   0.9%  subspace 19 ($DLT$)&lt;BR /&gt;0029c090  0089f8   1.2%  subspace 20 ($PLT$)&lt;BR /&gt;002a4a88  015040   3.0%  subspace 21 ($DATA$)&lt;BR /&gt;002b9ac8  000538   0.0%  (unused)&lt;BR /&gt;&lt;/LIB&gt;</description>
      <pubDate>Wed, 28 Nov 2007 22:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108615#M92606</guid>
      <dc:creator>pramodsharma</dc:creator>
      <dc:date>2007-11-28T22:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108616#M92607</link>
      <description>&amp;gt;Do you see any issue here especially&lt;BR /&gt;"00001000 0fc51a 36.1% subspace 0 ($SHLIB_INFO$)"?&lt;BR /&gt;&amp;gt;What does this mean and taking the maximum size?&lt;BR /&gt;&lt;BR /&gt;This is in text.  It contains the names of all exported and imported symbols and their relocations.  If you had a symbol definition that was only used in the lib, if you hid it, it wouldn't be there.&lt;BR /&gt;&lt;BR /&gt;You really should provide the ll(1) and size(1) sizes so we can see if it is worth worrying about this lib.&lt;BR /&gt;&lt;BR /&gt;If you add up all of the text you'll see that $SHLIB_INFO$ is less than half:&lt;BR /&gt;(gdb) p 0x0fc51a&lt;BR /&gt;$1 = 1033498&lt;BR /&gt;(gdb) p 0x296000- 0x1000&lt;BR /&gt;$2 = 2707456&lt;BR /&gt;&lt;BR /&gt;This should give you the size(1) values:&lt;BR /&gt;$ odump -init /usr/lib/libc.2&lt;BR /&gt;Initialization pointers for /usr/lib/libc.2:&lt;BR /&gt;Ind Sp AC HRIL Loc/Init InitLn  Start&lt;BR /&gt;  0  0 2c H..L 0006d000 1487e4 00001000&lt;BR /&gt;  1  1 1f H..L 001b6000 008000 40001000&lt;BR /&gt;  2  1 1f .... 00000000 00ada0 40009000</description>
      <pubDate>Wed, 28 Nov 2007 23:18:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108616#M92607</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-28T23:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108617#M92608</link>
      <description>Hmm , Now I am learning something.&lt;BR /&gt;&lt;BR /&gt;These are the outputs.&lt;BR /&gt;bash-3.2# ls -lrta libtest.sl.4.0&lt;BR /&gt;-rwx------   1 root       root       2859008 Nov 27 23:31 libtest.sl.4.0&lt;BR /&gt;&lt;BR /&gt;bash-3.2# ll libtest.sl.4.0&lt;BR /&gt;-rwx------   1 root       root       2859008 Nov 27 23:31 libtest.sl.4.0&lt;BR /&gt;&lt;BR /&gt;bash-3.2# size libtest.sl.4.0&lt;BR /&gt;   text    data     bss     dec     hex filename&lt;BR /&gt;2706695  146800    6936 2860431  2ba58f libtest.sl.4.0&lt;BR /&gt;&lt;BR /&gt;bash-3.2# odump -init libtest.sl.4.0&lt;BR /&gt;&lt;BR /&gt;Initialization pointers for libtest.sl.4.0:&lt;BR /&gt;&lt;BR /&gt;Ind Sp AC HRIL Loc/Init InitLn  Start&lt;BR /&gt;&lt;BR /&gt;  0  0 2c H..L 00001000 294d24 00001000&lt;BR /&gt;  1  1 1f H..L 00296000 024000 40001000&lt;BR /&gt;  2  1 1f .... 00000000 001888 40025000&lt;BR /&gt;&lt;BR /&gt;bash-3.2#&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2007 23:30:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108617#M92608</guid>
      <dc:creator>pramodsharma</dc:creator>
      <dc:date>2007-11-28T23:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: size of binaries/libraries are almost 2.5 times then other platforms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108618#M92609</link>
      <description>&amp;gt;These are the outputs.&lt;BR /&gt;&amp;gt;rwx------ 1 2859008 libtest.sl.4.0&lt;BR /&gt;&lt;BR /&gt;If you don't make it executable to everyone, that will cost you performance, PID faults.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2706695 146800 6936 2860431 libtest.sl.4.0&lt;BR /&gt;&lt;BR /&gt;So there is little difference between ll and size, no fluff.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;0 0 2c 00001000 294d24&lt;BR /&gt;&amp;gt;1 1 1f 00296000 024000&lt;BR /&gt;&amp;gt;2 1 1f 00000000 001888&lt;BR /&gt;&lt;BR /&gt;Converting to decimal:&lt;BR /&gt;(gdb) p 0x294d24 $1 = 2706724&lt;BR /&gt;(gdb) p 0x024000 $2 = 147456&lt;BR /&gt;(gdb) p 0x001888 $3 = 6280&lt;BR /&gt;Rounded up values from size(1) above.  Hmm, except for BSS.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2007 23:50:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/size-of-binaries-libraries-are-almost-2-5-times-then-other/m-p/4108618#M92609</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-28T23:50:38Z</dc:date>
    </item>
  </channel>
</rss>

