<?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: Finding 32 bit or 64 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-32-bit-or-64/m-p/3237845#M890728</link>
    <description>I got it it should be __LP64__ and not LP64</description>
    <pubDate>Fri, 02 Apr 2004 05:28:23 GMT</pubDate>
    <dc:creator>yatin</dc:creator>
    <dc:date>2004-04-02T05:28:23Z</dc:date>
    <item>
      <title>Finding 32 bit or 64</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-32-bit-or-64/m-p/3237843#M890726</link>
      <description>I am writing ver simple helloworld like program .How can i detect whether i am compiling it for 32bit or 64 bit i tried LP64 bu it dint work here is the code&lt;BR /&gt;&lt;BR /&gt;include&lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;#ifdef LP64&lt;BR /&gt;#define var 64&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;#ifndef LP64&lt;BR /&gt;#define var 32&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;void main()&lt;BR /&gt;{&lt;BR /&gt;        printf("%d",var);&lt;BR /&gt;}&lt;BR /&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Fri, 02 Apr 2004 04:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-32-bit-or-64/m-p/3237843#M890726</guid>
      <dc:creator>yatin</dc:creator>
      <dc:date>2004-04-02T04:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Finding 32 bit or 64</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-32-bit-or-64/m-p/3237844#M890727</link>
      <description>if (sizeof (int *) == 8) {&lt;BR /&gt;printf ("64 bit\n");&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;print "32bit\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;cpp symbols you could look for are&lt;BR /&gt;&lt;BR /&gt;_FILE_OFFSET_BITS&lt;BR /&gt;_ILP32&lt;BR /&gt;_LFS64_LARGEFILE&lt;BR /&gt;&lt;BR /&gt;And as long as you don't state which compiler you use, it's pretty hard to guess what cpp symbols are defined. gcc has a different set of symbols as HP's C-ANSI-C&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 02 Apr 2004 05:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-32-bit-or-64/m-p/3237844#M890727</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-04-02T05:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding 32 bit or 64</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-32-bit-or-64/m-p/3237845#M890728</link>
      <description>I got it it should be __LP64__ and not LP64</description>
      <pubDate>Fri, 02 Apr 2004 05:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-32-bit-or-64/m-p/3237845#M890728</guid>
      <dc:creator>yatin</dc:creator>
      <dc:date>2004-04-02T05:28:23Z</dc:date>
    </item>
  </channel>
</rss>

