64 bit windows fortran compiler

  1. 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.
     
  2. jcsd
  3. Hurkyl

    Hurkyl 16,090
    Staff Emeritus
    Science Advisor
    Gold Member

    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.
     
  4. 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!
     
  5. AlephZero

    AlephZero 7,300
    Science Advisor
    Homework Helper

    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.
     
Know someone interested in this topic? Share a link to this question via email, Google+, Twitter, or Facebook

Have something to add?