Sun Studio 10: Fortran 77 Readme
This Sun[tm] Studio release no longer includes a separate FORTRAN 77 compiler, f77. Recent releases have migrated many FORTRAN 77 features into the Fortran 95 compiler, f95. Much of the functionality of the f77 compiler is now available with the Fortran 95 compiler.
In this release, the f77 command is a script that calls the f95 compiler with an appropriate set of defaults:
f95 -f77 -ftrap=%none
If it is necessary to link to library routines that were compiled previously with a release of the FORTRAN 77 compiler, add -xlang=f77 to the command line:
f77 -xlang=f77 or f95 -f77 -ftrap=%none -xlang=f77
If your FORTRAN 77 program does not compile with the f95 compiler, either migrate your program to be compliant with the standard Fortran 95 language or use the Forte Developer 6 update 2 release of the f77 compiler.
When invoking the f77 script, a warning message is issued to alert you to the fact that f95 is being used in -f77 compatibility mode. You can disable this message by adding -errtags=INVOKE to the command line.
If you compile with the -fast flag, keep in mind that this flag changes the trapping mode from no trapping to "common" trapping. To retain Fortran 77's behavior you will need to explicitly add -ftrap=%none after the -fast flag:
f77 -fast -ftrap=%none
See the Fortran 95 man page and Fortran 95 readme file for more information about the f95 compiler and its -f77 compatibility mode.
See the Fortran User's Guide for details on FORTRAN 77 compatibility issues.
If you compile and link in separate steps, the list of libraries you will need to link with will not be same as you used with previous releases of f77. Link with the f77 command instead of ld.
DocumentationYou can find full documentation for the Fortran 95 compiler in the documentation index that is installed with the software. Point your browser at file:/opt/SUNWspro/docs/index.html. Documentation is also on the http://docs.sun.com/ web site. The Fortran documentation set includes: Fortran User's Guide, the Fortran Programmer's Guide, and the Fortran Library Reference.
Copyright © 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.