Fortran 64 bit windows fortran compiler

Click For Summary
The discussion centers on the challenges of finding a suitable 64-bit Fortran compiler for Windows, particularly after transitioning to a new PC with a 64-bit processor and Windows Vista. The user has explored options like Intel's compiler but is deterred by compatibility issues and high costs. Suggestions include using the GNU Compiler Collection, specifically gfortran, which can generate 64-bit output, although some confusion exists about the actual bitness of the downloaded compilers. It's clarified that even if a compiler runs as a 32-bit application, it can still produce 64-bit code, depending on the options used. The conversation emphasizes the importance of verifying compiler capabilities through documentation and command-line options.
mcgrete
Messages
2
Reaction score
0
Hi,
I have used Compaq Visual Fortran 6.5 for years. Recently bought a new PC with Intel Core2 Quad Q6600 processor and Windows Vista 64 bit Home Premium OS (yes, likely a mistake on the OS).

I wish to use Code I wrote in the past and take advantage of 64bit processor, memory, etc.

I have been unable to find a free (or inexpensive) 64 bit fortran compiler for Windows. Perhaps I have misunderstood what info I have found on the web. I considered shelling out the $2k for Intel's latest version, which is supposed to be compatible with Compaq Visual Fortran, but it appears to require Windows' SDK, which I read to not be supported by Windows Vista Home (go figure).

Before I break down and buy another hard drive and install Linux (which I wish to avoid the effort and the maintenance on another OS), does anyone have knowledge to help?

If not with the Windows, with the selection of Linux OS versions (there are so many) and a compatible Fortran compiler for Linux and Compaq Visual Fortran code (I have all the source code still, obviously).

I appreciate it.
 
Technology news on Phys.org
The GNU compiler collection includes a Fortran 77 compiler (g77), and GNU appears to be developing a compiler for the more recent standard (gfortran). If you cannot find a direct port of one of these compilers to windows, then I expect you could use Cygwin to provide an environment in which they can run.
 
Hurkyl said:
The GNU compiler collection includes a Fortran 77 compiler (g77), and GNU appears to be developing a compiler for the more recent standard (gfortran). If you cannot find a direct port of one of these compilers to windows, then I expect you could use Cygwin to provide an environment in which they can run.

Hurkyl,
Thanks. I have tried this, and it appears that all versions are actually true 32bit, but will run on 32 or 64 bit OS. Is that correct, or am I missing something? For instance, I downloaded "mingw-w64-bin_x86_64-mingw_20090110.zip" and extracted. Many of the files appear to indicate that they are actually 32bit, e.g. x86_64-pc-mingw32-gfortran.exe.

Again, I am looking to take advantage of my 64bit processor and OS. Am I ignorant about this?

How would I try and verify/check that the compiler is actually true 64 bit vs. 32 bit that will run on a 64 bit system?

Thanks!
 
mcgrete said:
Hurkyl,
Thanks. I have tried this, and it appears that all versions are actually true 32bit, but will run on 32 or 64 bit OS. Is that correct, or am I missing something? For instance, I downloaded "mingw-w64-bin_x86_64-mingw_20090110.zip" and extracted. Many of the files appear to indicate that they are actually 32bit, e.g. x86_64-pc-mingw32-gfortran.exe.

Again, I am looking to take advantage of my 64bit processor and OS. Am I ignorant about this?

How would I try and verify/check that the compiler is actually true 64 bit vs. 32 bit that will run on a 64 bit system?

Thanks!

It doesn't matter if the compiler is only a 32 but application. Compilation is not a hugely demanding task, and much of it is "8-bit" character manipulation anyway.

What matters is that the compiler can generate 64-bit output code. Professional-quality compiler systems (like GNU) can usually generate code for a whole range of different target machines - even for completely different CPU chips from the CPU that the compiler is running on. (That is called "cross-compilation").

The documentation will tell you what options to use on the command line to generate code for different machine architectures.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 13 ·
Replies
13
Views
4K
Replies
6
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
216K
  • · Replies 4 ·
Replies
4
Views
15K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K