[PDF] [PDF] FORTRAN 77 40 Users Guide - Institute of Physics, Bhubaneswar

This manual does not teach programming or the FORTRAN 77 language For details on a and syntax It assumes you knew and forgot, and is not a tutorial



Previous PDF Next PDF





[PDF] Interactive Fortran 77 - Department of Computer Science, University

solving with Fortran 77 using an interactive timesharing computer system The Adobe Systems Incorporated, Postscript Language Tutorial and Cookbook, Ad- Jenson K , Wirth N , Pascal: User Manual and Report, Springer Verlag



[PDF] Professional Programmers Guide to Fortran77 - University of Leicester

7 jui 2005 · One of the attractions of Fortran77 is that a good free compiler exists in the several topics which are often omitted from much larger textbooks because The purpose of this License is to make a manual, textbook, or other 



[PDF] Fortran 77 textbook pdf - Squarespace

Fortran 77 textbook pdf Processing The Fortran Programming Language Related Book Categories: Computational Physics and Scientific Computing in 



[PDF] FORTRAN 77 40 Users Guide - Institute of Physics, Bhubaneswar

This manual does not teach programming or the FORTRAN 77 language For details on a and syntax It assumes you knew and forgot, and is not a tutorial



[PDF] fortran 77 tutorial

Most lines in a Fortran 77 program starts with 6 blanks and ends before column 72, i e only the statement field is used Note that Fortran 90 allows free format



[PDF] Introduction to programming in Fortran 77 for students of Science

In this course, we will use g77 (GNU Fortran) compiler which can be downloaded from http://www stolaf edu/people/humke/UNIX/emacs-tutorial html To explore the more advanced functions of Emacs, consult the original Emacs manual at



[PDF] Fortran 77 Programmers Guide

() Surround arguments or are empty if the function has no arguments following function/subroutine names Surround manual page section in which the command 



[PDF] Introduction to Programming with Fortran - ResearchGate

6 oct 2010 · through the first standard in 1966, the Fortran 77 standard, the Fortran 90 stan- dard, the http://gcc gnu org/onlinedocs/gcc-4 5 2/gfortran pdf is a 236 page pdf 1 3 3 3 for many teachers to expand it into valuable textbooks



[PDF] Fortran for Scientists and Engineers; Fourth Edition

swers to all exercises are included in the Instructor's Manual Good programming FIGURE 1-6 A FORTRAN 77 program to solve for the roots of the quadratic equation ax2 + bx + c = 0 kelvins (K) can be found in any physics textbook It is



[PDF] FORTRAN 77 40 Reference Manual

tutorial Its function and purpose are solely to help you find features or routines, not to teach you FORTRAN 77, programming, or programming style This book is  

[PDF] fortran 77 write

[PDF] fortran 90

[PDF] fortran 90 basics pdf

[PDF] fortran 90 example

[PDF] fortran 90 function

[PDF] fortran 90 handbook pdf

[PDF] fortran 90 pi

[PDF] fortran 90 programming pdf

[PDF] fortran 90 read

[PDF] fortran 90 standard pdf

[PDF] fortran 90 textbook

[PDF] fortran 90 textbook pdf

[PDF] fortran 90 tutorial pdf

[PDF] fortran 90 write format

[PDF] fortran 90/95 pdf

FORTRAN 77 4.0 User"s Guide

A Sun Microsystems, Inc. Business

Part No.: 802-2997-10

Revision A, November 19952550 Garcia Avenue

Mountain View, CA 94043

U.S.A.

Please

Recycle

Ó 1995 Sun Microsystems, Inc. 2550 Garcia Avenue, Mountain View, California 94043-1100 U.S.A.

All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution

and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of

Sun and its licensors, if any.

Portions of this product may be derived from the UNIX system and from the Berkeley 4.3 BSD system, licensed from the University of

California. Third-party software, including font technology in this product, is protected by copyright and licensed from Sun"s Suppliers.

RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to restrictions as set forth in subparagraph

(c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR 52.227-19.

The product described in this manual may be protected by one or more U.S. patents, foreign patents, or pending applications.

TRADEMARKS

SunSoft, A Sun Microsystems, Inc. Business, Sun, Sun Microsystems, the Sun logo, Sun Microsystems Computer Corporation, the Sun

Microsystems Computer Corporation logo, the SunSoft logo, Solaris, SunOS, and OpenWindows are trademarks or registered trademarks of

Sun Microsystems, Inc. in the U.S. and certain other countries. UNIX is a registered trademark in the United States and other countries,

exclusively licensed through X/Open Company, Ltd. OPEN LOOK is a registered trademark of Novell, Inc. PostScript and Display PostScript

are trademarks of Adobe Systems, Inc. Intel® is a registered trademark of Intel Corporation. Pentium™ is a trademark of Intel Corporation.

Cray® is a registered trademark of Cray Research, Inc. VAX® and VMS® are registered trademarks of Digital Equipment Corporation. CDC

is a registered trademark of Control Data Corporation. UNIVAC is a registered trademark of UNISYS Corporation. All other product, service,

or company names mentioned herein are claimed as trademarks and trade names by their respective companies.

All SPARC trademarks, including the SCD Compliant Logo, are trademarks or registered trademarks of SPARC International, Inc. in the United

States and may be protected as trademarks in other countries. SPARCcenter, SPARCcluster, SPARCompiler, SPARCdesign, SPARC811,

SPARCengine, SPARCprinter, SPARCserver, SPARCstation, SPARCstorage, SPARCworks, microSPARC, microSPARC-II, and UltraSPARC

are

licensed exclusively to Sun Microsystems, Inc. Products bearing SPARC trademarks are based upon an architecture developed by Sun

Microsystems, Inc.

The OPEN LOOK™ and Sun™ Graphical User Interfaces were developed by Sun Microsystems, Inc. for its users and licensees. Sun

acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer

industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun"s licensees who

implement OPEN LOOK GUI"s and otherwise comply with Sun"s written license agreements. X Window System is a trademark of the X Consortium.

Some of the material in this manual is based on the Bell Laboratories document entitled "A Portable Fortran 77 Compiler," by S. I. Feldman

and P. J. Weinberger, dated August 1, 1978. Material on the I/O Library is derived from the paper entitled "Introduction to the f77 I/O

Library," by David L. Wasley, University of California, Berkeley, California 94720. Further work was done at Sun Microsystems.

THIS PUBLICATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT

NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-

INFRINGEMENT.

THIS PUBLICATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE

PERIODICALLY ADDED TO THE INFORMATION HEREIN, THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THE

PUBLICATION. SUN MICROSYSTEMS, INC. MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE

PROGRAMS(S) DESCRIBED IN THIS PUBLICATION AT ANY TIME. iiiFORTRAN 77 User"s Guide

Contents

Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi

1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1.1 Operating Environments. . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.2 Standards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

1.3 Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Mixing Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

1.4 New Features and Behavior Changes . . . . . . . . . . . . . . . . 4

Features in 4.0 that are New Since 3.0/3.0.1. . . . . . . . . . . . . . 4 Features in 3.0.1 that are New Since 3.0.. . . . . . . . . . . . . . . . . 6 Features in 3.0 that are New Since 2.0/2.0.1. . . . . . . . . . . . . . 7 Differences for FORTRAN in Solaris 2.x/1.x /x86 . . . . . . . . . 9 Behavior Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 ivFORTRAN 77 User"s Guide

1.5 Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

FORTRAN 77 3.0/3.0.1 to 4.0 . . . . . . . . . . . . . . . . . . . . . . . . . . 15 BCP: Running Applications from Solaris 1.x in 2.x . . . . . . . . 15 Application Development in Solaris 2.x for 1.x . . . . . . . . . . . 16

1.6 Text Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

1.7 Program Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

1.8 Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

1.9 Performance Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

1.10 Licensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

2. The Compiler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

2.1 Uses of the Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

2.2 A Quick Start. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Usingf77 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Compiling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Running . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Renaming the Executables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

2.3 Compile Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Command-line Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Compile-Link Sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Command-Line File Names. . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Language Preprocessor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Separate Compiling and Linking . . . . . . . . . . . . . . . . . . . . . . . 25 Consistent Compiling and Linking . . . . . . . . . . . . . . . . . . . . . 26 Unrecognized Arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Contentsv

2.4 Option Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

2.5 Most Useful Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

2.6 Actions Summary (Actions and Options Sorted by Action) 28

Debugging Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Floating-point Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Library Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Licensing Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Performance Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Parallelization Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Profiling Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Alignment Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Backward Compatibility and Legacy Options . . . . . . . . . . . . 32 Miscellaneous Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

2.7 Options Summary (Options and Actions Sorted by Option)34

2.8 Options Details (Options and Actions Sorted by Option) 39

2.9 Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

General Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Parallel Directives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

2.10 Native Language Support . . . . . . . . . . . . . . . . . . . . . . . . . . 95

Locale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Compile-Time Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . 97 Localizing and Installing the Files . . . . . . . . . . . . . . . . . . . . . . 97 Using the File After Installation . . . . . . . . . . . . . . . . . . . . . . . . 99

2.11 Miscellaneous Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

viFORTRAN 77 User"s Guide Floating-Point Hardware Type . . . . . . . . . . . . . . . . . . . . . . . . . 99 Many Options on Short Commands. . . . . . . . . . . . . . . . . . . . . 99 Align Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Optimizer Out of Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 BCP Mode: How to Make 1.x Applications Under 2.x. . . . . . 105

3. File System and FORTRAN 77 I/O. . . . . . . . . . . . . . . . . . . . . . . 109

3.1 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

3.2 Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

3.3 File Names. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

3.4 Path Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

Relative Path Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Absolute Path Names. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

3.5 Redirection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Output/Truncate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Output/Append . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

3.6 Piping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

4. Disk and Tape Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

4.1 File Access from FORTRAN 77 Programs. . . . . . . . . . . . . 117

Accessing Named Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 Accessing Unnamed Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Passing File Names to Programs. . . . . . . . . . . . . . . . . . . . . . . . 120 Direct I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Internal Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

Contentsvii

4.2 Tape I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

UsingTOPEN for Tape I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 FORTRAN 77 Formatted I/O for Tape. . . . . . . . . . . . . . . . . . . 128 FORTRAN 77 Unformatted I/O for Tape . . . . . . . . . . . . . . . . 128 Tape File Representation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 End-of-File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Access on Multiple-File Tapes. . . . . . . . . . . . . . . . . . . . . . . . . . 130

5. Program Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

5.1 Simple Program Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

Scripts or Aliases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Limitations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

5.2 Program Builds with themake Program. . . . . . . . . . . . . . 132

Themakefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 make. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 The C Preprocessor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Macros withmake. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Overriding of Macro Values . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Suffix Rules inmake. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

5.3 Change Tracking and Control with SCCS . . . . . . . . . . . . . 138

Putting Files under SCCS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 Making the SCCS Directory. . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 Inserting SCCS ID Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Creating SCCS Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 Checking Files Out and In. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 viiiFORTRAN 77 User"s Guide

6. Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145

6.1 Libraries in General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145

Advantages of Libraries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Debug Aids . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Consistent Compile and Link . . . . . . . . . . . . . . . . . . . . . . . . . . 147 Fast Directory Cache for the Link-editor . . . . . . . . . . . . . . . . . 147

6.2 Library Search Paths and Order . . . . . . . . . . . . . . . . . . . . . 149

Order of Paths Critical for Compile (Solaris 1.x) . . . . . . . . . . 149 Error:Library not Found . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Search Order for Library Search Paths. . . . . . . . . . . . . . . . . . . 151quotesdbs_dbs3.pdfusesText_6