I wrote Fortran Codes and I want to compile them. Sorry I don’t know more information about this question because It is one of my friends question. Is there a specific program for Compiling Fortran Codes?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can compile a fortran program by typing a line similar to the following:
It is important that you understand what is happening here:
f77is the name of theFortran compiler. Your compiler may have a different name such asg77, ifc. or pgf77.The
-ooption tells the compiler that the next word (here, myprogram) will be the name of the binary version of the program. If you omit this option, most systems will use the default namea.outfor the binary version regardless of the name of your program. It’s OK to use this default, though it’s usually helpful to use a more meaningful name. The binary file is often called the executable file because the computer can run (execute) it.myprogram.f is the name of the file that contains the source code of your program. The source code is the file of instructions that you actually edit and type. Your source file could be named something other than myprogram.f, such as homework1.f. or some other descriptive name. On many systems the name of the source file must end with the
suffix .for the compiler is apt to become unhappy.To run the program, simply type the name of the executable file:
You can find more about it Here also