To compile a program use the f77 command. To run the program just type a.out . There are two ways to change the executable filename. To rename your new executable version use the command mv . You can also use the -o option when using f77 .
Optimization is turned on with the -O option.
Debugging options are enabled with the -g option. When you use f77 the linker is automatically activated. To suppress linking use the option -c . If you wish to create an executable version of the file then use the command ld , which invokes the linker. If you decide to use the linker separately then you must tell it the proper libraries to search.