Desperate Student - Fortran G77 Compiler Help

In summary, the student asked their professor about research opportunities and was advised to download and use the Fortran G77 Compiler. However, they encountered confusion about which specific program to use and how to download it on their Windows7 computer. After some research, it was discovered that g77 is now called gfortran and can be downloaded from a specific website. It is also recommended to use a text editor such as Crimson or Notepad++ for better functionality.
  • #1
MPKU
53
0
I recently asked my professor if he had any research opportunities in the following semesters and he told me that I should download and play around with 'Fortran G77 Compiler' and get back to him.

So, I've looked into it but didn't make much progress.First off, I'm confused with which program he is specifically talking about.. I noticed there are several different versions of Fortran say, GNU Fortran, Fortran 90, 95, etc... Not really sure. But I think he wants me to use specifically Fortran G77 Compiler..

I'm using a Windows7 computer [I'm not against downloading a different OS, I just wouldn't know how to go about it].

So basically I'm asking, where can I download this, or what am I looking for exactly?

Do I need to download Fortran, and then a Gfortran package or something?

Or is a Fortran G77 Compiler just one download?

Do I need an editor or can I use notepad or MSDOS Windows, if so how? Are there any tutorials on how to use/download Fortran G77 Compiler on Windows? Thanks.
 
Physics news on Phys.org
  • #2
g77 was g77 for a long time, but it is no longer called g77; instead, they went to gfortran, now. Probably because somebody else beat them to the punch with the g95 name (not GNU).

So, what you need is gfortran. You can download from here. It look like you need to the that says "Native Window" build.

I use cygwin for other reasons, but I think you can simply work with Windows binaries.

I would recommend downloading a nice editor, like Crimson or Notepad++. Lately, I have settled with Notepad++ with the little quirk that it does not quite recognize fortran 90 file, only fortran 77...but all you have to do is start writing from column 7 on and it highlight fortran 90 just fine.
 

1. What is a Fortran G77 compiler?

A Fortran G77 compiler is a software tool used to translate Fortran source code into executable programs. It is part of the GNU Compiler Collection (GCC) and is commonly used for scientific and engineering applications.

2. How do I install the Fortran G77 compiler on my computer?

The Fortran G77 compiler is typically installed as part of the GCC package. You can download and install GCC for your specific operating system, or you can use a package manager such as Homebrew (for Mac) or apt-get (for Linux) to install it.

3. Can I use the Fortran G77 compiler for modern programming?

While the Fortran G77 compiler was widely used in the past, it is now considered outdated and has been replaced by newer versions of Fortran, such as Fortran 90 and beyond. It is not recommended to use the Fortran G77 compiler for modern programming due to its lack of support for newer language features.

4. How do I compile my Fortran code using the Fortran G77 compiler?

To compile your Fortran code using the Fortran G77 compiler, you will need to use a command-line interface. First, navigate to the directory where your Fortran source code is located. Then, use the command "g77 [file_name].f -o [executable_name]" to compile your code and create an executable file.

5. What are some common issues or errors when using the Fortran G77 compiler?

Some common issues when using the Fortran G77 compiler include compatibility issues with newer operating systems, lack of support for certain language features, and difficulty in debugging due to limited error messages. It is recommended to use a more modern Fortran compiler for better compatibility and support.

Similar threads

  • Programming and Computer Science
Replies
3
Views
1K
  • Programming and Computer Science
Replies
29
Views
2K
  • Computing and Technology
Replies
3
Views
2K
  • Programming and Computer Science
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
6K
  • Programming and Computer Science
Replies
4
Views
4K
  • Programming and Computer Science
Replies
5
Views
2K
  • Programming and Computer Science
Replies
4
Views
2K
  • Programming and Computer Science
Replies
1
Views
1K
  • Programming and Computer Science
Replies
3
Views
1K
Back
Top