<?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: aCC large .o files in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091837#M90610</link>
    <description>&amp;gt;if I can compile it for 32 bits. If so, there's no need to create such big .o files.&lt;BR /&gt;&lt;BR /&gt;This isn't going to make the .o files that much smaller.  I was worried about the executables where N users multiples any R/W data increase.&lt;BR /&gt;</description>
    <pubDate>Mon, 25 Feb 2008 18:54:43 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-02-25T18:54:43Z</dc:date>
    <item>
      <title>aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091827#M90600</link>
      <description>Hi all!&lt;BR /&gt;&lt;BR /&gt;I've been compiling a simple C++ class and checked the size of the object file. In HP-UX 11.23 (64-bit architecture) I have a size of 18 KB but in a Compaq Tru64 5.1A system (also 64-bit architecture) I get a 1.2 KB! &lt;BR /&gt;&lt;BR /&gt;I checked several other object files in HP-UX and in Tru64 and in HP-UX all object files are bigger (a lot bigger if I have more bigger files). &lt;BR /&gt;&lt;BR /&gt;I can't seem to explain this, can you help me? &lt;BR /&gt;&lt;BR /&gt;This is the simple .cpp file I tested in both systems:&lt;BR /&gt;&lt;BR /&gt;//////&lt;BR /&gt;&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;class CBase { virtual void dummy() {} };&lt;BR /&gt;class CDerived: public CBase { int a; };&lt;BR /&gt;&lt;BR /&gt;int main () {&lt;BR /&gt; CBase * cBas = new CDerived();&lt;BR /&gt; CDerived&amp;amp; cDer = dynamic_cast&lt;CDERIVED&gt; (*cBas);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;//////&lt;BR /&gt;&lt;BR /&gt;I compiled in HP-UX with:&lt;BR /&gt;&lt;BR /&gt;aCC -v +DD64 -O -c testDynaCast.cpp&lt;BR /&gt;&lt;BR /&gt;and in Tru64 with:&lt;BR /&gt;&lt;BR /&gt;cxx -v -c testDynaCast.cpp&lt;BR /&gt;&lt;BR /&gt;Any help would be great at this point, thanks.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Miguel Rentes&lt;BR /&gt;&lt;/CDERIVED&gt;&lt;/IOSTREAM&gt;</description>
      <pubDate>Fri, 08 Feb 2008 18:04:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091827#M90600</guid>
      <dc:creator>Miguel Silva Rentes</dc:creator>
      <dc:date>2008-02-08T18:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091828#M90601</link>
      <description>Keep an eye on this other, very similar thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1201805" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1201805&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 08 Feb 2008 18:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091828#M90601</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-02-08T18:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091829#M90602</link>
      <description>&amp;gt;I've been compiling a simple C++ class and checked the size of the object file.&lt;BR /&gt;&lt;BR /&gt;You shouldn't compare trivial sources.  Instead you should use your real sources.  And compare the output from size(1).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I checked several other object files in HP-UX and in Tru64 and in HP-UX all object files are bigger&lt;BR /&gt;&lt;BR /&gt;It is expected for the code part to be twice as big as PA, using -AA.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;This is the simple .cpp file I tested in both systems:&lt;BR /&gt;&lt;BR /&gt;Using A.06.15, I get 13.7 Kb.&lt;BR /&gt;size(1) returns: 1034 + 184 + 9 = 1227</description>
      <pubDate>Sat, 09 Feb 2008 01:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091829#M90602</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-09T01:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091830#M90603</link>
      <description>Using size(1) I get the following:&lt;BR /&gt;&lt;BR /&gt;- in a Compaq Tru64 5.1A:&lt;BR /&gt;&lt;BR /&gt;text    data    bss     dec     hex&lt;BR /&gt;208     384     0       592     250&lt;BR /&gt;&lt;BR /&gt;- in a HP-UX 11.23:&lt;BR /&gt;&lt;BR /&gt;1787 + 336 + 9 = 2132&lt;BR /&gt;&lt;BR /&gt;In Tru64 the .o file has 1306 bytes and in HP-UX the generated .o file has 18312 bytes. &lt;BR /&gt;&lt;BR /&gt;Does anybody have a clue about why this is happening or, on the other hand, if this is ok and there's nothing I can do?&lt;BR /&gt;&lt;BR /&gt;Best regards</description>
      <pubDate>Mon, 11 Feb 2008 17:22:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091830#M90603</guid>
      <dc:creator>Miguel Silva Rentes</dc:creator>
      <dc:date>2008-02-11T17:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091831#M90604</link>
      <description>HI:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; In Tru64 the .o file has 1306 bytes and in HP-UX the generated .o file has 18312 bytes. &lt;BR /&gt;&lt;BR /&gt;Why does this worry you?  Unless you are packaging your binaries onto something like a CDROM and limits really matter...&lt;BR /&gt;&lt;BR /&gt;You could slightly reduce the size of your binary with 'strip(1)' if debugging isn't of interest.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Feb 2008 17:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091831#M90604</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-11T17:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091832#M90605</link>
      <description>&amp;gt;- in a HP-UX 11.23:&lt;BR /&gt;&lt;BR /&gt;You haven't mentioned your architecture nor compiler version.  Is it PA or Integrity?  (I'm assuming the latter.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Does anybody have a clue about why this is happening or, on the other hand, if this is ok and there's nothing I can do?&lt;BR /&gt;&lt;BR /&gt;(Naturally I have a clue.  :-)&lt;BR /&gt;There is nothing you can do about it if you are already using A.06.15.&lt;BR /&gt;The important thing is using size(1) on your load modules, not individual object files.&lt;BR /&gt;&lt;BR /&gt;Is there any reason you need to use +DD64 and make your application 64 bit?  Apples to oranges?</description>
      <pubDate>Mon, 11 Feb 2008 17:42:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091832#M90605</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-11T17:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091833#M90606</link>
      <description>&amp;gt;JRF: You could slightly reduce the size of your binary with strip(1) if debugging isn't of interest.&lt;BR /&gt;&lt;BR /&gt;Unfortunately it isn't slightly.  A large aC++ application like ecom/ctcom is half the size when "strip -l" is done.  I wouldn't recommend stripping all the way.</description>
      <pubDate>Mon, 11 Feb 2008 17:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091833#M90606</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-11T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091834#M90607</link>
      <description>&amp;gt;  You haven't mentioned your architecture nor compiler version. Is it PA or Integrity? (I'm assuming the latter.) &lt;BR /&gt;&lt;BR /&gt;My architecture is Integrity and my HP-UX aCC compiler version is A.06.13&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  Is there any reason you need to use +DD64 and make your application 64 bit? Apples to oranges?&lt;BR /&gt;&lt;BR /&gt;Our main application was migrated from Compaq Tru64 Unix 5.1A, which using its C++ compiler (cxx), compiles in 64 bits by default. So I had to use the +DD64 flag to produce the same effect in HP-UX. Do you see any reason why I shouldn't use this +DD64 and compile in 64 bits?</description>
      <pubDate>Mon, 11 Feb 2008 18:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091834#M90607</guid>
      <dc:creator>Miguel Silva Rentes</dc:creator>
      <dc:date>2008-02-11T18:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091835#M90608</link>
      <description>&amp;gt;my HP-UX aCC compiler version is A.06.13&lt;BR /&gt;&lt;BR /&gt;(The latest version is A.06.16.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Our main application was migrated from Compaq Tru64 Unix 5.1A, which using its C++ compiler (cxx), compiles in 64 bits by default. So I had to use the +DD64 flag to produce the same effect in HP-UX. Do you see any reason why I shouldn't use this +DD64 and compile in 64 bits?&lt;BR /&gt;&lt;BR /&gt;If you don't need the expanded address space, using 64 bit pointers/longs will bloat your data size.  With only a trivial decrease in code size.  Other issues are the availability of 64 bit shlibs from third parties.&lt;BR /&gt;&lt;BR /&gt;So if you have kept your code clean in regards to 32 or 64 bit, you should use the 32 bit default.  Otherwise, you'll need to continue using +DD64.</description>
      <pubDate>Mon, 11 Feb 2008 22:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091835#M90608</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-11T22:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091836#M90609</link>
      <description>Thanks everyone for your help! &lt;BR /&gt;&lt;BR /&gt;I'll check the whole source code to find out if I can compile it for 32 bits. If so, there's no need to create such big .o files.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Miguel Rentes</description>
      <pubDate>Mon, 25 Feb 2008 18:44:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091836#M90609</guid>
      <dc:creator>Miguel Silva Rentes</dc:creator>
      <dc:date>2008-02-25T18:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: aCC large .o files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091837#M90610</link>
      <description>&amp;gt;if I can compile it for 32 bits. If so, there's no need to create such big .o files.&lt;BR /&gt;&lt;BR /&gt;This isn't going to make the .o files that much smaller.  I was worried about the executables where N users multiples any R/W data increase.&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Feb 2008 18:54:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-large-o-files/m-p/5091837#M90610</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-25T18:54:43Z</dc:date>
    </item>
  </channel>
</rss>

