Go to main content
Oracle® Developer Studio 12.6: Fortran User's Guide

Exit Print View

Updated: July 2017
 
 

5.5 The f77 Command

Oracle Developer Studio software no longer includes a separate FORTRAN 77 compiler, f77. Recent releases migrated many FORTRAN 77 features into the Fortran 95 compiler, f95. Much of the functionality of the legacy FORTRAN 77 compiler is now available with the Fortran 95 compiler. Current Oracle Developer Studio compiler releases provide an f77 script, which calls the f95 compiler with an appropriate set of default options. Invoking f77 is equivalent to:

f95 -f77 -ftrap=%none

If it is necessary to link to library routines that were compiled with a previously released f77 compiler, add -xlang=f77 to the command line. However, if you are compiling and linking in separate steps and explicitly specify -xlang=f77, or -lM77, or -lF77, or -lsunmath, you must link with f95 (or the f77 script) and not with cc or CC. If you are also compiling with the -fast flag, add -ftrap=%none after -fast to retain FORTRAN 77's trapping behavior on arithmetic exceptions since -fast sets the trapping mode to "common".

f77 -fast -ftrap=%none

Invoking the f77 script issues a message to alert you to the fact that you are using the f95 compiler in -f77 compatibility mode. You can disable this message by adding -errtags=INVOKE to the command line. See –f77[=list] for more information.