<?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 32 or 64 Bits? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837687#M56108</link>
    <description>Renee, what will you do with this information in the program? I know what you're working on. I just don't see a practical use for knowing if a 32-bit program is running under a 64-bit OS.</description>
    <pubDate>Sun, 17 Apr 2011 13:42:36 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2011-04-17T13:42:36Z</dc:date>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837678#M56099</link>
      <description>Is there is way for Intel fortran to tell if it's running on 32 or 64bits ? The length of an intptr will tell you in the VS CRF but it don't know how to do it in fortran.&lt;BR /&gt;&lt;BR /&gt;Renee</description>
      <pubDate>Sat, 16 Apr 2011 20:48:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837678#M56099</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-16T20:48:11Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837679#M56100</link>
      <description>If you want to test if the program was compiled for 64-bit, you can do this:&lt;BR /&gt;&lt;BR /&gt;LOGICAL, PARAMETER :: I_AM_64_BIT = (INT_PTR_KIND() == 8)&lt;BR /&gt;&lt;BR /&gt;If you want to ask if the program is running on a 64-bit OS, no matter how the program was built,. that's a bit harder but still doable.</description>
      <pubDate>Sat, 16 Apr 2011 20:55:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837679#M56100</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-04-16T20:55:49Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837680#M56101</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;Yes, I do want to tell two things:&lt;BR /&gt;&lt;BR /&gt;1.) Whether the image was built for 32 or 64 bits.&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;2.) What the system is currently running on. Obviously 64 bit software cannot run on a 32 bit system.&lt;BR /&gt;&lt;BR /&gt;Renee</description>
      <pubDate>Sat, 16 Apr 2011 22:32:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837680#M56101</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-16T22:32:23Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837681#M56102</link>
      <description>Windows makes it fairly hard to detect that a 32-bit program is running on 64-bit Windows. One way might be to call GET_ENVIRONMENT_VARIABLE for the variable name "ProgramFiles(x86)" and see if it returns anything. If it does, then it is almost certainly a 64-bit system. This variable will not be defined on a 32-bit system.&lt;BR /&gt;&lt;BR /&gt;I have to ask, though - what are you going to do with this information?&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Apr 2011 23:37:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837681#M56102</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-04-16T23:37:58Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837682#M56103</link>
      <description>&lt;PRE&gt;[bash]program iswow64
   use iso_c_binding
   use ifwin
   implicit none
   type(c_funptr) cfp
   procedure(IsWow64Process),pointer :: fp
   integer(4) result
   cfp = GetProcAddress(GetModuleHandle("kernel32"//achar(0)),"IsWow64Process"//achar(0))
   if(c_associated(cfp)) then
      call c_f_procpointer(cfp,fp)
      if(fp(GetCurrentProcess(),result) /= 0) then
         if(result /= 0) then
            write(*,'(a)') 'It''s a SysWOW64 Process'
         else
            write(*,'(a)') 'It''s a normal process'
         end if
      else
         write(*,'(a,i0)') 'Strange error ',GetLastError()
      end if
   else
      write(*,'(a)') 'It''s a 32-bit OS'
   end if
end program iswow64
[/bash]&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Apr 2011 03:02:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837682#M56103</guid>
      <dc:creator>JVanB</dc:creator>
      <dc:date>2011-04-17T03:02:58Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837683#M56104</link>
      <description>Thank you!!!!!&lt;BR /&gt;Renee</description>
      <pubDate>Sun, 17 Apr 2011 03:29:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837683#M56104</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-17T03:29:03Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837684#M56105</link>
      <description>UH-oh....&lt;BR /&gt;&lt;BR /&gt;I'm working an taking a historical program called Adventure and Ifwin has conflicting names init. It gives about six errors with IFWIN.&lt;BR /&gt;&lt;BR /&gt;Renee</description>
      <pubDate>Sun, 17 Apr 2011 03:49:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837684#M56105</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-17T03:49:30Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837685#M56106</link>
      <description>I've put it in it's own test program and I am down to some undefines....&lt;BR /&gt;&lt;BR /&gt;ISWOW64PROCESS is a undefined interface.&lt;BR /&gt;error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands. [GETPROCADDRESS_G1]&lt;BR /&gt;error #6404: This name does not have a type, and must have an explicit type. [FP] C:\Users\renee\AppData\Local\Temporary Projects\Test\Test.f90 11&lt;BR /&gt;</description>
      <pubDate>Sun, 17 Apr 2011 04:14:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837685#M56106</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-17T04:14:03Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837686#M56107</link>
      <description>Then use MSDN to look up the interface and declare it yourself&lt;BR /&gt;MSDN shows:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="syntax"&gt;&lt;PRE class="syntax"&gt;&lt;STRONG&gt;BOOL IsWow64Process(
  HANDLE &lt;I&gt;&lt;A onclick="showTip(this)" class="synParam"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #810081;"&gt;hProcess&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/I&gt;,
  PBOOL &lt;I&gt;&lt;A onclick="showTip(this)" class="synParam"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #810081;"&gt;Wow64Process&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/I&gt;
);&lt;BR /&gt;-------&lt;BR /&gt;You transcribe to something like&lt;BR /&gt;------&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INTERFACE&lt;BR /&gt;     function IsWow64Process(hProcess, Wow64Process)
&lt;/SPAN&gt;&lt;SPAN class="sectionBodyText"&gt;      use IFWINTY&lt;BR /&gt;      INTEGER(BOOL) :: IsWow64Process&lt;BR /&gt;      &lt;/SPAN&gt;&lt;SPAN&gt;!DEC$ ATTRIBUTES DEFAULT, STDCALL, DECORATE, ALIAS:'IsWow64Process' :: IsWow64ProcessINTEGER(HANDLE) :: &lt;I&gt;&lt;A onclick="showTip(this)" class="synParam"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #810081;"&gt;hProcess&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/I&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;      INTEGER(PBOOL) :: Wow64Process&lt;BR /&gt;  end function IsWow64Process&lt;BR /&gt;end INTERFACE&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Jim Dempsey&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Apr 2011 12:41:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837686#M56107</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2011-04-17T12:41:34Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837687#M56108</link>
      <description>Renee, what will you do with this information in the program? I know what you're working on. I just don't see a practical use for knowing if a 32-bit program is running under a 64-bit OS.</description>
      <pubDate>Sun, 17 Apr 2011 13:42:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837687#M56108</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-04-17T13:42:36Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837688#M56109</link>
      <description>PBOOL means pointer to BOOL so you need something more like:&lt;BR /&gt;&lt;BR /&gt;!DEC$ ATTRIBUTES REFERENCE :: Wow64Process&lt;BR /&gt;INTEGER(BOOL) :: Wow64Process&lt;BR /&gt;&lt;BR /&gt;to describe that argument.</description>
      <pubDate>Sun, 17 Apr 2011 14:46:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837688#M56109</guid>
      <dc:creator>JVanB</dc:creator>
      <dc:date>2011-04-17T14:46:04Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837689#M56110</link>
      <description>&lt;P&gt;Steve,&lt;BR /&gt;&lt;BR /&gt;They are for identification at the begining of the program. Primary they are for an idividual who attempts to run the 64 Bit program on a 32 bit system and wonders why it wont work. Of course...you would need a 64 bit system to run it For the ID.&lt;BR /&gt;&lt;BR /&gt;Renee&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2011 18:17:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837689#M56110</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-17T18:17:05Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837690#M56111</link>
      <description>RO.&lt;BR /&gt;&lt;BR /&gt;Thank you. I'll work on it.&lt;BR /&gt;&lt;BR /&gt;Renee</description>
      <pubDate>Sun, 17 Apr 2011 18:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837690#M56111</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-17T18:20:00Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837691#M56112</link>
      <description>Renee, a user attempting to run a 64-bit executable on a 32-bit system will get an error about an invalid executable. Your code will not run and no amount of detection you add will help. And if the 32-bit code is run on a 64-bit OS - why is that important?&lt;BR /&gt;&lt;BR /&gt;There is no reason for you to build this as a 64-bit program. Just build it as 32-bit and it will run everywhere. I don't understand why you want to add so many levels of complexity to a simple console application.</description>
      <pubDate>Sun, 17 Apr 2011 19:32:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837691#M56112</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-04-17T19:32:52Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837692#M56113</link>
      <description>Thank you so much steve. I will look into that. &lt;BR /&gt;&lt;BR /&gt;I had a tenacious computer virus today. The way they are selling these diagnostic packages is disgraceful. The thing is just one step ahead of a virus and it makes quite a mess of the registry also. But I'm alright now and I have a very recent backup but I didn't need it. &lt;BR /&gt;&lt;BR /&gt;Renee</description>
      <pubDate>Mon, 18 Apr 2011 20:15:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837692#M56113</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-18T20:15:18Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837693#M56114</link>
      <description>Let's try Again.......&lt;BR /&gt;&lt;BR /&gt;First of all the book I got does not work for me. I use the index to find something and THAT book does not have the word datatype(s) in it???? How then, am I supposed to use such a book? Now if someone could recommend a technical book, I would appreciate it. I am working with a console task, so an emphasis on console tasks isnot out of the question or should I just go to AMAZON?&lt;BR /&gt;&lt;BR /&gt;OK, this question....&lt;BR /&gt;&lt;BR /&gt;I want to know whether my task was compiled and linked with 32 or 64 Bits.&lt;BR /&gt;&lt;BR /&gt;This does not work:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;LOGICAL Parameter I_AM_64BIT = (INT_PTR_KIND() == 8) &lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;if ( I_AM_64Bit) then&lt;/P&gt;&lt;P&gt;print 3&lt;/P&gt;&lt;P&gt;3 format ( "yes" )&lt;/P&gt;&lt;P&gt;end if&lt;BR /&gt;&lt;BR /&gt;On a 64 bit machine I_AM_64 is 0 and the contents of the if loop are not processed.&lt;BR /&gt;&lt;BR /&gt;Renee&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2011 21:26:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837693#M56114</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-25T21:26:53Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837694#M56115</link>
      <description>There are several good downloadable on-line references (European course material) easily found by browser search.&lt;BR /&gt;I'm about to order Metcalf, Reid, and Cohen's latest edition&lt;BR /&gt;&lt;A href="http://www.oup.com/us/catalog/general/subject/ComputerScience/ProgrammingLanguageTheory/?view=usa&amp;amp;ci=9780199601424 "&gt;http://www.oup.com/us/catalog/general/subject/ComputerScience/ProgrammingLanguageTheory/?view=usa&amp;amp;ci=9780199601424 &lt;/A&gt;&lt;BR /&gt;as I have a credit at Amazon, and they seem to have stopped expiring my balances.&lt;BR /&gt;It's not exactly an easy jump from Fortran 77, but it's one of the more accessible all-round references. &lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2011 22:13:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837694#M56115</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-04-25T22:13:07Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837695#M56116</link>
      <description>Renee,&lt;BR /&gt;&lt;BR /&gt;You did not copy what I wrote exactly - you left out characters. This works:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]LOGICAL, PARAMETER :: I_AM_64BIT = (INT_PTR_KIND() == 8)

if ( I_AM_64Bit) then

print 3

3 format ( "yes" )

end if
end[/fortran]&lt;/PRE&gt; &lt;PRE&gt;[plain]E:Projects&amp;gt;ifort r.f90
Intel Visual Fortran Intel 64 Compiler XE for applications running on Intel 64, Version 12.0.1.127 Build 20101116
Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.

Microsoft  Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:r.exe
-subsystem:console
r.obj

E:Projects&amp;gt;r.exe
yes

E:Projects&amp;gt;[/plain]&lt;/PRE&gt; &lt;BR /&gt;&lt;PRE&gt;[plain]E:Projects&amp;gt;ifort r.f90
Intel Visual Fortran Compiler XE for applications running on IA-32, Version 12.0.1.127 Build 20101116
Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.

Microsoft  Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:r.exe
-subsystem:console
r.obj

E:Projects&amp;gt;r.exe

E:Projects&amp;gt;[/plain]&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Apr 2011 23:14:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837695#M56116</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-04-25T23:14:17Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837696#M56117</link>
      <description>Ok Steve, I am trying it again because the following did not discrimate between 64 bits and 32 bits:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;call setupexit ! Call the routine which exits rel cleanly from the&lt;/P&gt;&lt;P&gt;c window which contains it.&lt;/P&gt;&lt;P&gt;call GET_ENVIRONMENT_VARIABLE('ProgramFiles(x86)', value1, len, &lt;/P&gt;&lt;P&gt;1 status) &lt;/P&gt;&lt;P&gt;If ( value1 .eq. 'C:\Program File') then &lt;/P&gt;&lt;P&gt; i_am_64bit = true&lt;/P&gt;&lt;P&gt;end if&lt;BR /&gt;&lt;BR /&gt;True and false have been defined correctly....by .true. and .false.(I don't believeI needed to do this when I was at DEC.)&lt;BR /&gt;&lt;BR /&gt;Your running AI32?&lt;BR /&gt;&lt;BR /&gt;Renee&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 04:12:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837696#M56117</guid>
      <dc:creator>reneeculver</dc:creator>
      <dc:date>2011-04-26T04:12:39Z</dc:date>
    </item>
    <item>
      <title>32 or 64 Bits?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837697#M56118</link>
      <description>Renee,&lt;BR /&gt;&lt;BR /&gt;I am running Windows 7 x64. The test you are using is not the one I have suggested and you have again not written it correctly, and seem to be confused regarding TRUE and FALSE.&lt;BR /&gt;&lt;BR /&gt;The named constants TRUE and FALSE are to be used when calling Windows API routines, as they have different values, by default, than the Fortran LOGICAL constants .TRUE. and .FALSE.. You are calling a Fortran intrinsic procedure for which the STATUS argument is an integer. It is not a TRUE/FALSE value.&lt;BR /&gt;&lt;BR /&gt;The following does what you want:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]character(80) env
integer status
integer len

call get_environment_variable("ProgramFiles(x86)",env,len,status)

if (status == 0) then
  print *, "System is 64-bit"
else
  print *, "System is 32-bit"
end if

end[/fortran]&lt;/PRE&gt; You don't want to test the value as it is language-dependent. But I will also say that this test adds no value to the user. You have not explained what you will do with this information.</description>
      <pubDate>Tue, 26 Apr 2011 15:22:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/32-or-64-Bits/m-p/837697#M56118</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-04-26T15:22:19Z</dc:date>
    </item>
  </channel>
</rss>

