a>
|
|
Home > Help Files > Unix > Useful Unix commands
Help Files: UNIX
Useful Unix Commands
Advanced Commands
Fortran 77
FORTRAN 77 - COMPILING AND EXECUTION
f77 source1.f source2.o -lsource3 -o exefile
In this example the source files are of three types:
Source1 is main fortran source program which must be compiled and then
linked with source2.o, a previously compiled program, and
-lsource3 , a subroutine library file in /usr/lib . The
executable file is exefile (Default is a.out) .
f77 source.f
In this example the source is compiled separately. If success-
ful the executable file is sent to a file named a.out.
f77 -cC source.f ... The -cC sets some recommended switches.
Compile and save the object file in source.o wihout calling
the loader.
f77 file1.f *.o -lsyslib -o myprog
Compile source file1.f, load together with all other object
files in the current directory, and produce an executable
object file myprog.
|
|
© |