Salford FTN77 User Guide

Total Page:16

File Type:pdf, Size:1020Kb

Salford FTN77 User Guide )71 User’s Guide IMPORTANT NOTICE Salford Software Ltd. gives no warranty that all errors have been eliminated from this manual or from the software or programs to which it relates and neither the Company nor any of its employees, contractors or agents nor the authors of this manual give any warranty or representation as to the fitness of such software or any such program for any particular purpose or use or shall be liable for direct, indirect or consequential losses, damages, costs, expenses, claims or fee of any nature or kind resulting from any deficiency defect or error in this manual or such software or programs. Further, the user of such software and this manual is expected to satisfy himself/herself that he/she is familiar with and has mastered each step described in this manual before the user progresses further. The information in this document is subject to change without notice. May 1998 © Salford Software Ltd 1998 All copyright and rights of reproduction are reserved. No part of this document may be reproduced or used in any form or by any means including photocopying, recording, taping or in any storage or retrieval system, nor by graphic, mechanical or electronic means without the prior written consent of the Salford Software Ltd. ii Preface This user’s guide describes the facilities available in version 3.55 and later of FTN77(DOS/Win16), the Salford Software Fortran 77 compiler for 80386-, 80486- and Pentium-based Personal Computers running MS-DOS revision 5 and later. This compiler and the applications generated from it can be run under DOS or in a DOS box under Windows 3.1(1) or Windows 95. When used with Salford’s ClearWin+, it can also be used to create Win16 applications for Windows 3.1(1) or Windows 95. This guide also describes the facilities available in version 3.62 and later of FTN77(Win32), the Salford Fortran 77 compiler for 80486 and Pentium based Personal Computers. This edition of the compiler is suitable for the Windows NT Operating System and for Windows 95. It can also be used with ClearWin+ in order to generate Win32 applications for Windows 3.1(1) (using Win32S), Windows 95 and Windows NT. The guide concentrates on compiler-specific features and those areas of the Fortran language where the ANSI Standard1 needs amplification. The guide is not intended to be used as a Fortran language reference manual although chapter 10 does contain a detailed guide to the features of input/output and chapter 12 is a comprehensive guide to character handling. For further information about Fortran 77 the reader is referred to one of the many published texts such as Effective Fortran 77 by Michael Metcalf (Clarendon Press ISBN 0-19-853709-3). FTN77 provides a large number of useful subroutines and functions in addition to those specified in the ANSI Standard. Some of the functions that have been provided are defined as intrinsic functions and are described in chapter 11. The remaining functions and all of the subroutines are outlined in chapter 29 and described in the on- line Help systems (one for DOS and one for Windows) and also in a companion volume called the FTN77 Library Reference manual. On the next page you will find a list of chapter headings in this guide. A full table of contents appears after the acknowledgements. 1ANSI X3.9-1978 iii FTN77 User’s Guide Chapter headings in this guide: page 1. Introduction ............................................................................. 1 2. Installation guide and getting started (DOS/Win16)................. 5 3. Installation guide and getting started (Win32) ....................... 15 4. Compiling with FTN77 ........................................................... 21 5. Using /LGO and /LINK........................................................... 39 6. Compiler options ................................................................... 43 7. Using SDBG.......................................................................... 51 8. Program development ........................................................... 75 9. Optimisation and efficient use of Fortran............................... 85 10. Fortran input/output ............................................................. 95 11. Intrinsic functions............................................................... 139 12. Fortran 77 character handling facilities.............................. 157 13. Language extensions......................................................... 177 14. The in-line assembler ........................................................ 193 15. The in-line assembler and DBOS....................................... 201 16. Mixed language programming........................................... 209 17. The COMGEN utility.......................................................... 217 18. Calling the Windows API (Win32) ...................................... 223 19. Using LINK77, RUN77 and Libraries (DOS/Win16) ........... 229 20. SLINK (Win32) .................................................................. 241 21. Using MK and MK32.......................................................... 265 22. Using Plato........................................................................ 277 23. DBOS (DOS)..................................................................... 289 24. Running DBOS applications under Windows (Win16) ........ 307 25. Plotter Interfacing (DOS) ................................................... 313 26. Calling real mode libraries and programs (DOS) ................ 315 27. Execution errors and IOSTAT values................................ 325 28. Error and exception handling (Win32)............................... 333 29. Overview of the FTN77 run-time library ............................ 335 Some chapters relate only to one version of the compiler (either DOS/Win16 or Win32). These are distinguished in the even page header. In chapters that are largely common to both versions, sections that relate only to one version are presented with a shaded background. iv Acknowledgements * * * FTN77 is a registered trademarks of Salford Software Ltd. DBOS, Salford C++, SLINK and ClearWin+ are trademarks of Salford Software Ltd. FTN90 is a joint trademark of Salford Software Ltd and the Numerical Algorithms Group Ltd. MS-DOS, Windows, Windows 95 and Windows NT are trademarks of Microsoft Corporation. BRIEF is a trademark of Borland International Inc. Intel is a registered trademark of Intel Corporation. AUTOMAKE is a trademark of Polyhedron Software Ltd. v FTN77 User’s Guide vi Table of Contents 1. Introduction ............................................................................................................ 1 The compiler....................................................................................................................................... 1 High compilation speed....................................................................................................................... 1 Object code ......................................................................................................................................... 1 Compile-time diagnostics .................................................................................................................... 2 Run-time diagnostics........................................................................................................................... 2 Source level debugger ......................................................................................................................... 2 In-line assembler................................................................................................................................. 2 Other language extensions................................................................................................................... 3 Portability aids.................................................................................................................................... 3 Mixed language programming and libraries......................................................................................... 3 ClearWin+ .......................................................................................................................................... 3 2. Installation guide and getting started (DOS/Win16) ............................................ 5 Hardware requirements ....................................................................................................................... 5 Installing FTN77................................................................................................................................. 5 A simple example ............................................................................................................................... 8 Getting started .................................................................................................................................... 9 HELP!............................................................................................................................................... 13 The HELP77 utility........................................................................................................................... 13 3. Installation guide and getting started (Win32)................................................... 15 Hardware requirements ..................................................................................................................... 15 Installing FTN77..............................................................................................................................
Recommended publications
  • Thank You for Purchasing the Elder Scrolls: Arena. Dedicated Rpgers
    The Elder Scrolls ARENA hank you for purchasing The Elder Scrolls: Arena. Dedicated RPGers have invested an incredible amount of effort into creating this detailed simulation. If you enjoy the game, please pass the word! There is no better advertising than a satisfied customer. TYou can also purchase the second chapter of The Elder Scrolls, entitled Daggerfall, in Fall 1996. TES: Daggerfall will feature the same open-endedness and breadth as Arena, but will feature increased NPC (Non-Player-Character) interaction, a faster, more sophisticated 3-D engine, and a more extensive storyline. With all the planned enhancements, Daggerfall will give you even more of an opportunity to role-play your character as you choose. We are very excited about Daggerfall and what it will mean to the role-playing community. On our part, we promise to keep bringing you the best in computer simulation software and welcome any suggestions you may have for how we can serve you better. Journey well, and peace be with you. —The Bethesda Team Installing the Game Place the CD into your computer’s CD-ROM drive. Type the drive letter followed by a colon (Ex: D: for most CD-ROM drives) and hit <ENTER>. Next type INSTALL and hit <ENTER>. If you are installing Arena from floppy disks, select ‘Install Game’ and follow the prompts. Because you are installing from the CDROM, 5 megabytes of data will be copied to your hard drive when you select ‘Exit’. The next step is to configure your game (see below). Configuring Arena to your System To configure any Sound FX and Music drivers once Arena has successfully installed (if you wish to play the game with sound and/or music), choose the ‘Configure Game’ option.
    [Show full text]
  • XICE Lnstallationguide for Motorola 68000, 68HCOOO, 68ECOOO and 68302 Development Systems for DOS and UNIX Hosts
    1mmm Applied Microsystems Corporation XICE lnstallationGuide for Motorola 68000, 68HCOOO, 68ECOOO and 68302 Development Systems for DOS and UNIX Hosts May 1993 PIN 922-17140-03 Copyright© 1993 Applied Microsystems Corporation All rights reserved. \' '\'9~t\B<\', nnt:iubmv ~'9\nt . ,:~ s no gnilis' IBM XT and IBM AT are trademarks of IBM Corporation Microsoft and MS-DOS™ are trademarks of Microsoft Corporation. Microtec is a registered trademarks of Microtec Research, Inc. SP ARC, SPARCstation, Sun, Sun-3, Sun-4, NFS, and PC-NFS are trademarks o Microsystems, Inc. UNIX is a registered trademark of AT&T. VALIDATE is a registered tradmark of Applied Microsystems Corporation I Contents Chapter 1 Introduction Organization of the documentation................................... 1-2 Overview of the toolchain................................................... 1-4 XICE ............................................................................. 1-4 XRAY............................................................................ 1-4 C Cross Compiler......................................................... 1-4 C++ Compiler............................................................... 1-4 Chapter2 Installing on a Sun Workstation Step 1: Check minimum requirements ................ ............. 2-2 Requirements for Sun 4 (SPARC) workstations........ 2-2 Step 2: Set up the directory structure............................... 2-3 · Step 3: Copy the software from the tape........................... 2-4 Step 4: Define individual user's setup..............................
    [Show full text]
  • Computing :: Operatingsystems :: DOS Beyond 640K 2Nd
    DOS® Beyond 640K 2nd Edition DOS® Beyond 640K 2nd Edition James S. Forney Windcrest®/McGraw-Hill SECOND EDITION FIRST PRINTING © 1992 by James S. Forney. First Edition © 1989 by James S. Forney. Published by Windcrest Books, an imprint of TAB Books. TAB Books is a division of McGraw-Hill, Inc. The name "Windcrest" is a registered trademark of TAB Books. Printed in the United States of America. All rights reserved. The publisher takes no responsibility for the use of any of the materials or methods described in this book, nor for the products thereof. Library of Congress Cataloging-in-Publication Data Forney, James. DOS beyond 640K / by James S. Forney. - 2nd ed. p. cm. Rev. ed. of: MS-DOS beyond 640K. Includes index. ISBN 0-8306-9717-9 ISBN 0-8306-3744-3 (pbk.) 1. Operating systems (Computers) 2. MS-DOS (Computer file) 3. PC -DOS (Computer file) 4. Random access memory. I. Forney, James. MS-DOS beyond 640K. II. Title. QA76.76.063F644 1991 0058.4'3--dc20 91-24629 CIP TAB Books offers software for sale. For information and a catalog, please contact TAB Software Department, Blue Ridge Summit, PA 17294-0850. Acquisitions Editor: Stephen Moore Production: Katherine G. Brown Book Design: Jaclyn J. Boone Cover: Sandra Blair Design, Harrisburg, PA WTl To Sheila Contents Preface Xlll Acknowledgments xv Introduction xvii Chapter 1. The unexpanded system 1 Physical limits of the system 2 The physical machine 5 Life beyond 640K 7 The operating system 10 Evolution: a two-way street 12 What else is in there? 13 Out of hiding 13 Chapter 2.
    [Show full text]
  • Open WATCOM Programmer's Guide
    this document downloaded from... Use of this document the wings of subject to the terms and conditions as flight in an age stated on the website. of adventure for more downloads visit our other sites Positive Infinity and vulcanhammer.net chet-aero.com Watcom FORTRAN 77 Programmer's Guide Version 1.8 Notice of Copyright Copyright 2002-2008 the Open Watcom Contributors. Portions Copyright 1984-2002 Sybase, Inc. and its subsidiaries. All rights reserved. Any part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of anyone. For more information please visit http://www.openwatcom.org/ Portions of this manual are reprinted with permission from Tenberry Software, Inc. ii Preface The Watcom FORTRAN 77 Programmer's Guide includes the following major components: · DOS Programming Guide · The DOS/4GW DOS Extender · Windows 3.x Programming Guide · Windows NT Programming Guide · OS/2 Programming Guide · Novell NLM Programming Guide · Mixed Language Programming · Common Problems Acknowledgements This book was produced with the Watcom GML electronic publishing system, a software tool developed by WATCOM. In this system, writers use an ASCII text editor to create source files containing text annotated with tags. These tags label the structural elements of the document, such as chapters, sections, paragraphs, and lists. The Watcom GML software, which runs on a variety of operating systems, interprets the tags to format the text into a form such as you see here. Writers can produce output for a variety of printers, including laser printers, using separately specified layout directives for such things as font selection, column width and height, number of columns, etc.
    [Show full text]
  • DR DOS for the Zfx86
    DR DOS for the ZFx86 Cost Effective, Reliable, Rapid Deployment of Embedded Systems w DR DOS on the ZFx86 gets products to market quickly at the lowest development and ownership cost. w Thousands of compatible applications, drivers and utilities available free or at minimal cost. w Full documentation available. DR DOS 7.03 Key Features of DR DOS Online Manual - DRDOS is supplied with a complete The ideal embedded DOS system, online manual that contains detailed information about all designed for out-of-the-box of the features of the operating system including the basic implementation into ROM or Flash commands, and the advanced utilities. It also has online ROM with tools and associated help available for all its commands. documents available in the DRDOS Memory Management - Memory management features OEM Documentation Kit. include a set of device drivers and commands that enable w 100% MS-DOS 6.22 compatible.. you to manage memory efficiently and make as much memory as possible available to your applications. w Comprehensive DOS utility set DOS Protected Mode Services - DOS Protected Mode w Multitasking, with API for developers Services (DPMS) interface allows specially-implemented w DPMS memory manager in addition to DPMI device drivers and TSRs to operate in extended memory. w Stacker disk compression This makes more memory within the first megabyte w NWCACHE - disk caching program available to applications and other conventionally-written drivers and TSRs. Both Stacker* (the disk compression w EMM386 memory manager program), and NWCACHE (the disk cache) use DPMS. w DOS Protected Mode Services (DPMS) Disk Compression - The disk compression component w Multitasking enables you to store more information by compressing the w DR-DOS provides a full multitasking environment data.
    [Show full text]
  • IMS D7305A IBM 386 PC Occam 2 Toolset Delivery Manual
    ·. ,i .. W .. ~.~.. mrumos®[] IMS D7305A IBM 386 PC occam 2 Toolset delivery manual INMOS"'Y£'-is a member of the SGS-THOMSON Microelectronics Group © INMOS Limited 1993. This document may not be copied, in whole or in part, without prior written consent of INMOS. •,DIITI11OS·, IMS, and occam are trademarks of INMOS Limited. ~~em is a registered trademark of the SGS-THOMSON Microelectronics Group. INMOS Limited is a member of the SGS-THOMSON Microelectronics Group. WATCOM is a trademark of WATCOM Systems Inc. INMOS document number: 72 TDS 389 01 IContents 1 Introduction . 1 1.1 Layout of this manual . 1 1.2 Prerequisites for running the toolset . 1 1.3 Compatibility with previous releases . 1 2 Installing the release . 3 2.1 Installation . 3 2.2 Hosted and non-hosted tools . 4 2.3 Setting up the toolset for use . 5 2.3.1 Setting the FILES variable . 5 2.3.2 Setting the correct PATH . 5 2.3.3 Configuring the DOS extender . 5 2.3.4 Setting up the iserver . 6 Selecting the required iserver . 6 Special notes for users of the PC-NFS iserver . 7 Notes common to both versions of the iserver . 7 Note for users of the IMS B008 motherboard . 8 2.3.5 Use of the iserver by transputer tool driver programs 8 2.3.6 Setting the board memory size . 9 2.3.7 Setting root memory size for idebug . 9 2.3.8 Setting a file system search path . 9 2.3.9 Setting the device driver and terminal definition file 10 2.3.10 Environment space .
    [Show full text]
  • Microsoft Windows Resource
    Chapter 13 Troubleshooting Windows 3.1 This chapter provides information about troubleshooting Microsoft Windows for both general users and experts. If you have trouble installing Windows, or if Windows doesn’t run as well as you expected, this chapter will help you find out why and show you how to isolate and solve common problems. Related Information • Windows User’s Guide: Chapter 15, “Maintaining Windows with Setup” See also Chapter 4, “Troubleshooting,” in the Getting Started booklet • Windows Resource Kit: “The Troubleshooting Flowcharts for Windows 3.1” in “Welcome” Contents of this chapter About Troubleshooting.....................................................................................396 Getting Started with Troubleshooting........................................................396 Creating a “Clean Boot” for Troubleshooting ...........................................398 Troubleshooting Setup......................................................................................399 Troubleshooting TSR s During Setup .........................................................400 Troubleshooting MS-DOS Mode Setup......................................................401 Troubleshooting Windows Mode Setup ....................................................402 Troubleshooting Windows Configuration ........................................................403 Troubleshooting the Desktop Configuration .............................................403 Troubleshooting TSR Compatibility Problems ..........................................404
    [Show full text]
  • Performance Management in a Netware V3.1X Environment
    COMPAQ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Performance Management In a NetWare v3.1x Environment Compaq TechNote Includes information on: · Optimizing performance of Compaq PC Servers · Analysis and troubleshooting of network performance problems · Quick Reference Charts NOTICE The information in this publication is subject to change without notice. COMPAQ COMPUTER CORPORATION SHALL NOT BE LIABLE FOR TECHNICAL OR EDITORIAL ERRORS OR OMISSIONS CONTAINED HEREIN, NOR FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES RESULTING FROM THE FURNISHING, PERFORMANCE, OR USE OF THIS MATERIAL. This publication contains information protected by copyright. No part of this publication may be photocopied or reproduced in any form without prior written consent from Compaq Computer Corporation. This publication does not constitute an endorsement of the product or products that were tested. The configuration or configurations tested or described may or may not be the only available solution. This test is not a determination of product quality or correctness, nor does it ensure compliance with any federal, state, or local requirements. Compaq does not warrant products other than its own strictly as stated in COMPAQ product warranties. Product names mentioned herein may be trademarks and/or registered trademarks of their respective companies. ã 1993 Compaq Computer Corporation. All rights reserved. Printed in the U.S.A. COMPAQ, DESKPRO, SYSTEMPRO, SYSTEMPRO/LT, FASTART Registered U.S. Patent and Trademark Office. SYSTEMPRO/XL, ProSignia, EZ Help, COMPAQ
    [Show full text]
  • Microsoft Windows Resource
    Appendix D Articles This appendix contains technical articles on these topics: • Microsoft Windows for Pens • Quarterdeck’s QEMM –386 and Windows 3.1 • PC-NFS and Windows 3.1 • FastDisk: An Introduction to 32–Bit Access Contents of this appendix Windows for Pens.............................................................................................506 Why Pens?.................................................................................................506 Technical Highlights .................................................................................508 The Internal Architecture of Pen for Windows..........................................509 RC Manager ..............................................................................................510 Pen for Windows Support Resources ........................................................511 Quarterdeck’s QEMM –386 and Windows 3.1 ..................................................515 QEMM –386 Features for Windows ...........................................................515 Troubleshooting for QEMM -386 ...............................................................516 Getting Additional Help ............................................................................518 PC-NFS and Windows 3.1.................................................................................519 Installation Tips.........................................................................................519 Using PC-NFS With Windows ...................................................................519
    [Show full text]
  • Memory Management
    University of Mississippi eGrove American Institute of Certified Public Guides, Handbooks and Manuals Accountants (AICPA) Historical Collection 1993 Memory management American Institute of Certified Public Accountants. Information echnologyT Division Follow this and additional works at: https://egrove.olemiss.edu/aicpa_guides Part of the Accounting Commons, and the Taxation Commons Recommended Citation American Institute of Certified Public Accountants. Information echnologyT Division, "Memory management" (1993). Guides, Handbooks and Manuals. 486. https://egrove.olemiss.edu/aicpa_guides/486 This Book is brought to you for free and open access by the American Institute of Certified Public Accountants (AICPA) Historical Collection at eGrove. It has been accepted for inclusion in Guides, Handbooks and Manuals by an authorized administrator of eGrove. For more information, please contact [email protected]. INFORMATION TECHNOLOGY DIVISION BULLETIN AICPA American Institute of Certified Public Accountants TECHNOLOGY Notice to Readers This technology bulletin is the first in a series of bulletins that provide accountants with information about a particular technology. These bulletins are issued by the AICPA Information Technology Division for the benefit of Information Technology Section Members. This bulletin does not establish standards or preferred practice; it represents the opinion of the author and does not necessarily reflect the policies of the AICPA or the Information Technology Division. The Information Technology Division expresses its appreciation to the author of this technology bulletin, Liz O’Dell. She is employed by Crowe, Chizek and Company in South Bend, Indiana, as a manager of firmwide microcomputer operations, supporting both hardware and software applications. Liz is an Indiana University graduate with an associate’s degree in computer information systems and a bachelor’s degree in business management.
    [Show full text]
  • Remoteboot of Windows 95/98 from Os/2 Warp Server
    REMOTEBOOT OF WINDOWS 95/98 FROM OS/2 WARP SERVER MICHO DURDEVICH Abstract. We explain how to set up diskless Windows 95/98 workstations that remote boot from OS/2 Warp Server, using the 802.2 RIPL Service. We present several different configurations of Windows RIPL clients, and discuss a couple of interesting problems appearing in the game. The basics of the OS/2 Warp Server RIPL Service is presented, too. 1. Introduction This article is devoted to studying a very interesting way of integrating Windows with OS/2 Warp Server working environment. We shall explain in detail how to set up a remote boot diskless workstation to load Windows 95/98 (together with the appropriate applications) directly from an OS/2 Warp Server. This opens an exciting new possibility to extend IBM’s and Serenity Systems’ OS/2-based managed client philosophy to Win32 platforms. In other words, we are going to set up RIPL (Remote Initialization and Program Load) for Win95/98 clients. The main strategy used here is relatively straightfor- ward. The first real-mode phase of Win95/98 boot process is essentially a plain DOS. The transition to protected-mode regime occurs during the second boot phase, when the graphical part is loaded. Accordingly, our Win95/98 client will be under- stood, from the OS/2 Warp Server viewpoint, as a DOS client. This client will be configured appropriately, so it will be able to RIPL a full-blown version of Windows. It should be noted however, that this is not a documented feature of Windows nor OS/2.
    [Show full text]
  • Computing at BSU User Guide Date: September 28, 1995
    MEMO To: Faculty and Staff From: Shaun Loughney Subject: Computing at BSU User Guide Date: September 28, 1995 The following is the 1995-1996 updated inserts for your Computing at BSU User Guide. NOTE: CHAPTER 6 AND APPENDIXES B THRU E, G AND I, HAVE NO CBANGES. PLEASE RETAIN YOUR CURRENT REFERENCES. Take a look at what is new: The Center for Data Processing has added several new faces in the past year. See Chapter 1 for listing of current and new members of the Data Center. The not so new Student E-mail Server VARNEY is growing like wild fire. We have over 5000 users and are adding daily. See the Help Desk Documents BSU-01 and 02 for information on how to use the system. Several individuals on campus have pulled together and are designing a BSU Home Page for Internet access. The home page will eventually replace the Campus Wide Information System. See Chapters 2 and 5 for insight on what you will find at http://www.idbsu.edu. The Center for Data Processing has also started our own listserv, COMP-BSU. This is used to discuss campus computing issues, troubleshooting questions, and general topics of interest. See Help Desk Document Internet-05 to subscribe to listserv COMP-BSU. A couple of the Data Center's services have been improved to meet the campus needs: The dial-in access has received 16 new modems and authentication. To set up remote terminal access, see Help Desk Document COMM-05. The Faculty Computer Lab has upgraded their equipment. Several workstations are multi-media machines and have scanning ability.
    [Show full text]