Trying to look for a fortran compiler for my windows XP

Click For Summary

Discussion Overview

The discussion revolves around finding a free Fortran compiler for Windows XP, particularly in the context of preparing for an engineering competition. Participants share suggestions, experiences, and challenges related to different compiler options and installation processes.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses a need for a free Fortran compiler for Windows XP to prepare for an engineering competition.
  • Another participant notes that a Fortran compiler may execute code faster than a C program on a PC, though this is presented as a general observation rather than a definitive claim.
  • A suggestion is made to use Cygwin, which includes the GNU compiler collection, specifically g77, the GNU Fortran 77 compiler.
  • Links to resources for finding Fortran compilers, including g77, are provided, along with a suggestion to search for F90 and F95 versions.
  • A participant reports difficulties in opening binaries required for the compiler after installing Cygwin, expressing frustration.
  • Another participant provides a command for compiling source code using g77 within the Cygwin bash shell.
  • A different compiler, g95, is recommended as a user-friendly alternative that does not require Cygwin, with emphasis on its adherence to standards and cross-platform availability.

Areas of Agreement / Disagreement

Participants present multiple options for Fortran compilers, including g77 and g95, but there is no consensus on which is definitively better. Some participants express preferences based on ease of use and installation experiences, indicating a variety of opinions on the best approach.

Contextual Notes

Participants mention different experiences with installation and usage of compilers, highlighting potential challenges with Cygwin and the need for specific commands to compile code. There is also a lack of clarity on the performance comparisons between different compilers.

Who May Find This Useful

Individuals seeking to program in Fortran on Windows XP, particularly students preparing for engineering competitions or those exploring different compiler options.

sublime
Messages
13
Reaction score
0
not sure where this goes, but I am trying to look for a fortran compiler for my windows XP OS that is free so i can get into doing some programming. My school may be getting into a engineering competition and i would be a frontrunner on the team and want to get a headstart. if anyone can help i would appreciate it.
 
Physics news on Phys.org
sublime said:
not sure where this goes, but I am trying to look for a fortran compiler for my windows XP OS that is free so i can get into doing some programming. My school may be getting into a engineering competition and i would be a frontrunner on the team and want to get a headstart. if anyone can help i would appreciate it.
Just one note that might or might not be applicable to your case but remember that it is all but guaranteed that a FORTRAN compiler will execute some code any faster than say a C program on a PC.
 
Have you tried a google search? There are probably dozens of freely-available Fortran compilers for Windows.

I personally would suggest installing Cygwin, which includes the GNU compiler collection, including g77, the GNU Fortran 77 compiler.

http://www.cygwin.com

- Warren
 
got my cygwin up and am having some trouble opening up the binaries required to get the compiler working. :( i am quite frustrated.
 
Open the Cygwin bash shell. Type g77 inputfile -o outputfile to compile your source code, inputfile, into an executable, outputfile.

- Warren
 
g95(not to be confused with gfortran, the GNU F90 compiler) is your best bet. Not the GNU compilers if you're using windows. I say this from an ease of use persepective. Works from DOS, no need to deal with cygwin (which I've always considered to be a hassle). Also its very good about sticking strictly to the standard, and its available on every platform you could ever want, a major plus if portability becomes a concern (of course, so are the GNU compilers, but I'm really less of a fan of those for fortran, in part because upgrading them can be an absolute nightmare if you don't know what you're doing).
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
7
Views
3K
  • · Replies 37 ·
2
Replies
37
Views
5K
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K