f77 [input filename] -o [output filename]
For example, to compile the FORTRAN program in "myprog.f" and create the executable file "myprog.exe", type
f77 myprog.f -o myprog.exe
f77 myprog.f
To execute the program, type the name of the output file. For example, type
myprog.exe
a.out
For information about compiling and executing programs that call subprograms that are stored in a separate file, see the tip sheet, "Compiling and Executing Programs Using External Subprograms".
man f77
The following paths must be included in the PATH and MANPATH environment variables for the f77 and man commands to work properly:
In PATH: /opt/SUNWspro/bin In MANPATH: /opt/SUNWspro/man
~consult/proto/xsetup
**************************************************************** * * * Correspondence to VS FORTRAN * * * * ================= * * * * fortvs2 myrprog f77 myprog.f -o myprog.exe * * * * * * CMS Global Statements * * ===================== * * * * global txtlib vsf2fort cmslib See notes in text about * * global loadlib vsf2load PATH and MANPATH. * * * * * * * * Execution * * ========= * * * * load myprog (clear start myprog.exe * * * * * * Getting Help * * ============ * * * **************************************************************** * * * VS FORTRAN UNIX * * ========== ==== * * * * Filename Format * * =============== * * * * myprog fortran a myprog.f * * * * * * Compile Statement * * * * help fortran man f77 * * * ****************************************************************