Interactive Fortran 77
The aim of this book is to introduce the concepts and ideas involved in problem solving with Fortran 77 using an interactive timesharing computer system. The.
fortran 77 tutorial.pdf
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
Professional Programmers Guide to Fortran77
07-Jun-2005 Fortran which make programming easier and programs more reliable. One of the attractions of Fortran77 is that a good free compiler exists in ...
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 the Internet for both Windows and MacOS. If you intend to use Linux
FORTRAN 77 4.0 Users Guide
Some of the material in this manual is based on the Bell Laboratories document entitled “A Portable Fortran 77 Compiler” by S. I. Feldman.
Numerical Recipes in FORTRAN 77
06-Feb-2017 Numerical recipes in Fortran 77 : the art of scientific computing ... Forman Acton whose 1970 textbook Numerical Methods that Work (New ...
Introduction to Fortran 90
At present an ANSI standard Fortran 77 program should compile successfully with any Fortran 90 compiler without change. However the structure of a Fortran
Introductory Fortran Programming
Gentle introduction to Fortran 77 and 95 programming. File I/O. Arrays and loops This course just get you started - use textbooks reference manuals.
Fortran 90 Handbook.pdf
Fortran 90 including those familiar with programming language concepts but unfamiliar with Fortran. Experienced Fortran 77 programmers will be able to.
Introduction to Programming with Fortran
18-Nov-2004 Another problem is backwards compatibility with Fortran 77. Existing Fortran 77 ... for many teachers to expand it into valuable textbooks.
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 ofCalifornia. 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
arelicensed 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 AREPERIODICALLY 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 GuideContents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Operating Environments. . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2 Standards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Mixing Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41.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 Guide1.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 . . . . . . . . . . . 161.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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222.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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Contentsv
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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332.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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 952.10 Native Language Support . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Locale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Compile-Time Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . 97 Localizing and Installing the Files . . . . . . . . . . . . . . . . . . . . . . 97 Using the File After Installation . . . . . . . . . . . . . . . . . . . . . . . . 992.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. . . . . . 1053. 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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1123.5 Redirection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Output/Truncate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Output/Append . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1143.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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126Contentsvii
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. . . . . . . . . . . . . . . . . . . . . . . . . . 1305. Program Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
5.1 Simple Program Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Scripts or Aliases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Limitations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1325.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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1375.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 Guide6. 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 . . . . . . . . . . . . . . . . . 1476.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[PDF] fortran 90
[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
[PDF] fortran 95 compiler