<?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: How to know 64 bit or 32 bit in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046053#M94162</link>
    <description>&lt;!-- !*# --&gt;&lt;P&gt;&amp;gt;Can I write a code in C to tell this&lt;BR /&gt;&lt;BR /&gt;You can only write a program to tell what size the current program is, not the kernel.&lt;BR /&gt;&lt;BR /&gt;For HP-UX, you could test a define:&lt;BR /&gt;#ifdef __LP64__&lt;BR /&gt;&lt;BR /&gt;Or for general LP64 machines:&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;int main() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("size of void*: %d\n", (int)sizeof(void*));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2011 19:51:07 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-09-25T19:51:07Z</dc:date>
    <item>
      <title>How to know 64 bit or 32 bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046047#M94156</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;    Can i know how to find out a HP-UX machine is 32 bit or a 64 bit machine. Is there any command for that. &lt;BR /&gt;&lt;BR /&gt;     Even if it is not a HP machine can i write a code snippet to find out whether i am using 32 bit machine or a 64 bit machine.&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;Vikram&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2007 03:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046047#M94156</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2007-07-30T03:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to know 64 bit or 32 bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046048#M94157</link>
      <description>Hey&lt;BR /&gt;&lt;BR /&gt;type:&lt;BR /&gt;$getconf KERNEL_BITS&lt;BR /&gt;&lt;BR /&gt;output will be 32 or 64&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 30 Jul 2007 03:35:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046048#M94157</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2007-07-30T03:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to know 64 bit or 32 bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046049#M94158</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use &lt;BR /&gt;getconf KERNEL_BITS&lt;BR /&gt;it will give you the O/P which you need.....&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2007 03:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046049#M94158</guid>
      <dc:creator>Anshumali</dc:creator>
      <dc:date>2007-07-30T03:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to know 64 bit or 32 bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046050#M94159</link>
      <description>Hi Vikram:&lt;BR /&gt;&lt;BR /&gt;# getconf KERNEL_BITS&lt;BR /&gt;&lt;BR /&gt;...will tell you the "bitness" of your current kernel, e.g. "64"&lt;BR /&gt;&lt;BR /&gt;# getconf HW_CPU_SUPP_BITS&lt;BR /&gt;&lt;BR /&gt;...will tell you the "bitness" your hardware will support, e.g. "32/64"&lt;BR /&gt;&lt;BR /&gt;# file filename&lt;BR /&gt;&lt;BR /&gt;...will return:&lt;BR /&gt;&lt;BR /&gt;"ELF-64 executable object file - PA-RISC 2.0 (LP64)" for a 64bit codefile, otherwise something like:&lt;BR /&gt;&lt;BR /&gt;"PA-RISC1.1 shared executable" for a 32bit one.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 30 Jul 2007 06:18:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046050#M94159</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-30T06:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to know 64 bit or 32 bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046051#M94160</link>
      <description>Hi Vikram,&lt;BR /&gt;---&lt;BR /&gt;Even if it is not a HP machine can i write a code snippet to find out whether i am using 32 bit machine or a 64 bit machine.&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;You mean if is not hpux.&lt;BR /&gt;&lt;BR /&gt;Linux &lt;BR /&gt;# getconf LONG_BIT&lt;BR /&gt;32&lt;BR /&gt;&lt;BR /&gt;AIX&lt;BR /&gt;# bootinfo -K&lt;BR /&gt;64&lt;BR /&gt;&lt;BR /&gt;Solaris&lt;BR /&gt;# isainfo -kv&lt;BR /&gt;64-bit sparcv9 kernel modules&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 30 Jul 2007 07:42:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046051#M94160</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2007-07-30T07:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to know 64 bit or 32 bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046052#M94161</link>
      <description>Hi every one &lt;BR /&gt;&lt;BR /&gt;    Thank you very much for the reply.&lt;BR /&gt;&lt;BR /&gt;     This definitely solved my problem. But one thing i want  to ask here for curiosity.&lt;BR /&gt;&lt;BR /&gt;     Can i write a code in C to tell this &lt;BR /&gt;&lt;BR /&gt;     for ex- to know a machine is little endian or big endian i can write like this.&lt;BR /&gt;&lt;BR /&gt;  union {&lt;BR /&gt;             int Var;&lt;BR /&gt;             char One; &lt;BR /&gt;           }endian;&lt;BR /&gt;&lt;BR /&gt;    main ()&lt;BR /&gt;  {&lt;BR /&gt;        endian end;&lt;BR /&gt;        end.Var = 0x01;&lt;BR /&gt;        printf("%c",end.One);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram</description>
      <pubDate>Mon, 30 Jul 2007 08:14:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046052#M94161</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2007-07-30T08:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to know 64 bit or 32 bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046053#M94162</link>
      <description>&lt;!-- !*# --&gt;&lt;P&gt;&amp;gt;Can I write a code in C to tell this&lt;BR /&gt;&lt;BR /&gt;You can only write a program to tell what size the current program is, not the kernel.&lt;BR /&gt;&lt;BR /&gt;For HP-UX, you could test a define:&lt;BR /&gt;#ifdef __LP64__&lt;BR /&gt;&lt;BR /&gt;Or for general LP64 machines:&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;int main() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("size of void*: %d\n", (int)sizeof(void*));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2011 19:51:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-64-bit-or-32-bit/m-p/4046053#M94162</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-25T19:51:07Z</dc:date>
    </item>
  </channel>
</rss>

