JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Studio 12.3: Fortran User's Guide     Oracle Solaris Studio 12.3 Information Library
search filter icon
search icon

Document Information


1.  Introduction

2.  Using Solaris Studio Fortran

3.  Fortran Compiler Options

4.  Solaris Studio Fortran Features and Extensions

5.  FORTRAN 77 Compatibility: Migrating to Solaris Studio Fortran

5.1 Compatible f77 Features

5.2 Incompatibility Issues

5.3 Linking With Legacy FORTRAN 77-Compiled Routines

5.3.1 Fortran Intrinsics

5.4 Additional Notes About Migrating to the f95 Compiler

5.5 The f77 Command

A.  Runtime Error Messages

B.  Features Release History

C.  Fortran Directives Summary


5.5 The f77 Command

Solaris 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 Solaris 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 3.4.22 -f77[=list] for more information.