<?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: Is it 32 or 64? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446843#M682913</link>
    <description>&amp;gt;JRF: Y=$(( $Y+1 ))&lt;BR /&gt;&lt;BR /&gt;You can "improve" these by removing the "$" by putting everything in (( )):&lt;BR /&gt;(( Y += 1 ))</description>
    <pubDate>Thu, 25 Jun 2009 23:10:09 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-06-25T23:10:09Z</dc:date>
    <item>
      <title>Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446830#M682900</link>
      <description>Hi,&lt;BR /&gt;I'm working on HP-UX hpux B.11.23 RISC.&lt;BR /&gt;I'm creating some exe and shared libs.&lt;BR /&gt;Currently my system works on 64bit (I know that by running getconf $KERNEL_BITS&lt;BR /&gt;Is there any way/command such that I can get info about the specific executable or sl? (on all the other env, i can do it with the "file" command.&lt;BR /&gt;&lt;BR /&gt;tx,&lt;BR /&gt;s</description>
      <pubDate>Thu, 25 Jun 2009 07:19:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446830#M682900</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2009-06-25T07:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446831#M682901</link>
      <description>Hi again,&lt;BR /&gt;I've read this:&lt;BR /&gt;&lt;A href="http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2005-03/0019.html" target="_blank"&gt;http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2005-03/0019.html&lt;/A&gt;&lt;BR /&gt;Is it true when I run "file" on executable and get "PA-RISC2.0" then it's 64?&lt;BR /&gt;&lt;BR /&gt;tx.</description>
      <pubDate>Thu, 25 Jun 2009 07:40:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446831#M682901</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2009-06-25T07:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446832#M682902</link>
      <description>Hi Dev,&lt;BR /&gt;&lt;BR /&gt;Run a below command to check the bit &lt;BR /&gt;&lt;BR /&gt;file Library_path&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vivek</description>
      <pubDate>Thu, 25 Jun 2009 07:45:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446832#M682902</guid>
      <dc:creator>Vivek Bhatia</dc:creator>
      <dc:date>2009-06-25T07:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446833#M682903</link>
      <description>It's telling you its a PA-RISC rather than IA64 binary/library and yes is 64-bit.&lt;BR /&gt;&lt;BR /&gt;When this binary runs, it will run run in the ARIES translation environment...&lt;BR /&gt;&lt;BR /&gt;for more info see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/go/aries" target="_blank"&gt;http://www.hp.com/go/aries&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For native IA64 binaries, they will be marked as 64 or 32 bit from thye file command.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 25 Jun 2009 07:48:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446833#M682903</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-06-25T07:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446834#M682904</link>
      <description>&amp;gt;Is it true when I run "file" on executable and get "PA-RISC2.0" then it's 64?&lt;BR /&gt;&lt;BR /&gt;No, not always.  It has to say "LP64":&lt;BR /&gt;/stand/vmunix:  ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;/usr/lib/libc.sl:       PA-RISC2.0 shared library -not stripped&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jun 2009 09:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446834#M682904</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-25T09:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446835#M682905</link>
      <description>by the way,&lt;BR /&gt;when in my code I print "sizeof(long)" I accpect to get 8 if this is a 64bit, but I got 4.&lt;BR /&gt;what do you think? Is it even good check at all?&lt;BR /&gt;&lt;BR /&gt;s.</description>
      <pubDate>Thu, 25 Jun 2009 09:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446835#M682905</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2009-06-25T09:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446836#M682906</link>
      <description>Hi Dennis,&lt;BR /&gt;long time... tx for the answer.&lt;BR /&gt;anyway, do you have some documentation for this (the LP64...)? &lt;BR /&gt;&lt;BR /&gt;tx.</description>
      <pubDate>Thu, 25 Jun 2009 09:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446836#M682906</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2009-06-25T09:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446837#M682907</link>
      <description>&amp;gt;when in my code I print "sizeof(long)" I expect to get 8 if this is a 64bit, but I got 4.&lt;BR /&gt;&lt;BR /&gt;If you want to compile with 64 bit, you need to use +DD64, for HP's compilers.  The default is 32 bit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;do you have some documentation for this (the LP64)?&lt;BR /&gt;&lt;BR /&gt;What type of documentation?  Porting or aC++ compiler options?&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=2308852bcbe02110852bcbe02110275d6e10RCRD" target="_blank"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=2308852bcbe02110852bcbe02110275d6e10RCRD&lt;/A&gt;</description>
      <pubDate>Thu, 25 Jun 2009 10:21:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446837#M682907</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-25T10:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446838#M682908</link>
      <description>actually I'm just looking for some official documentation for what you said:&lt;BR /&gt;1. default is 32bit&lt;BR /&gt;2. 64bit only when "file &lt;EXE file=""&gt;" command rerurns LP64 in its output.&lt;BR /&gt;&lt;BR /&gt;(I must have a reference to some HP official documentation...)&lt;BR /&gt;&lt;BR /&gt;tx in advance.&lt;BR /&gt;s&lt;/EXE&gt;</description>
      <pubDate>Thu, 25 Jun 2009 11:55:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446838#M682908</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2009-06-25T11:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446839#M682909</link>
      <description>pls note that I'm using gcc compiler and not ac++&lt;BR /&gt;&lt;BR /&gt;s.</description>
      <pubDate>Thu, 25 Jun 2009 12:13:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446839#M682909</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2009-06-25T12:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446840#M682910</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; actually I'm just looking for some official documentation for what you said:&lt;BR /&gt;1. default is 32bit&lt;BR /&gt;2. 64bit only when "file &lt;EXE file=""&gt;" command rerurns LP64 in its output.&lt;BR /&gt;&lt;BR /&gt;If you look at the examples titled "PA-32 and IPF 32-bit mode example" and "PA-64 and IPF 64-bit mode example" in the Linker guide or in the Programmers guide:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/14640/OnlineHelp/linkerdifferencesiapa.htm" target="_blank"&gt;http://docs.hp.com/en/14640/OnlineHelp/linkerdifferencesiapa.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3901-90024/B3901-90024.pdf" target="_blank"&gt;http://docs.hp.com/en/B3901-90024/B3901-90024.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...you can clearly see the you must use '+DD64' to create a 64-bit object.  You will also see the +DD Data Module default is explicitly ILP32 mode.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EXE&gt;</description>
      <pubDate>Thu, 25 Jun 2009 12:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446840#M682910</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-25T12:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446841#M682911</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;That is easy. 11.23 is a PA-RISC 64 bit only OS.&lt;BR /&gt;&lt;BR /&gt;It is fully compatible with 32 bit applications.&lt;BR /&gt;&lt;BR /&gt;The what, which and file command are going to reflect not the OS but how the file was compiled, created.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 25 Jun 2009 14:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446841#M682911</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-06-25T14:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446842#M682912</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; actually I'm just looking for some official documentation for what you said:&lt;BR /&gt;2. 64bit only when "file &lt;EXE file=""&gt;" command rerurns LP64 in its output.&lt;BR /&gt;&lt;BR /&gt;As noted several times, the 'file' command interprets this by examining a snippet of the file's contents and the contents of '/etc/magic':&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/file.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/file.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You might find it instructive to do:&lt;BR /&gt;&lt;BR /&gt;# grep -E "PA|LP|EL" /etc/magic&lt;BR /&gt;&lt;BR /&gt;...along with a 'file' command against your various executables.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;/EXE&gt;</description>
      <pubDate>Thu, 25 Jun 2009 15:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446842#M682912</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-25T15:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446843#M682913</link>
      <description>&amp;gt;JRF: Y=$(( $Y+1 ))&lt;BR /&gt;&lt;BR /&gt;You can "improve" these by removing the "$" by putting everything in (( )):&lt;BR /&gt;(( Y += 1 ))</description>
      <pubDate>Thu, 25 Jun 2009 23:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446843#M682913</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-25T23:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it 32 or 64?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446844#M682914</link>
      <description>(Oops ignore my bogus reply to JRF above.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I'm just looking for some official documentation for what you said:&lt;BR /&gt;&amp;gt;1. default is 32bit&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/14487/options.htm#opt+DDdata_model" target="_blank"&gt;http://docs.hp.com/en/14487/options.htm#opt+DDdata_model&lt;/A&gt;&lt;BR /&gt;(gcc follows the HP-UX default.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. 64bit only when "file &lt;EXE file=""&gt;" command returns LP64 in its output.&lt;BR /&gt;&lt;BR /&gt;You aren't going to find this.  About the best that can be done is the elfdump -f output:&lt;BR /&gt;$ elfdump -f /usr/lib/pa20_64/libc.sl&lt;BR /&gt;/usr/lib/pa20_64/libc.sl:&lt;BR /&gt;                *** ELF Header ***&lt;BR /&gt;Class:                   ELF-64&lt;BR /&gt;&lt;BR /&gt;It says "64" what more do you need?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;pls note that I'm using gcc compiler and not aC++&lt;BR /&gt;&lt;BR /&gt;Then there is no official documentation.&lt;BR /&gt;For PA, you have to install separate 32 and 64 bit gcc compilers.  For IPF, you can use -milp32 or -mlp64:&lt;BR /&gt;$ gcc -milp32 hi.c&lt;BR /&gt;$ file a.out&lt;BR /&gt;a.out:          ELF-32 executable object file - IA64&lt;BR /&gt;$ gcc -mlp64 hi.c&lt;BR /&gt;$ file a.out&lt;BR /&gt;a.out:          ELF-64 executable object file - IA64&lt;/EXE&gt;</description>
      <pubDate>Thu, 25 Jun 2009 23:29:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-it-32-or-64/m-p/4446844#M682914</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-25T23:29:59Z</dc:date>
    </item>
  </channel>
</rss>

