Anda di halaman 1dari 171
‘onfiguring the Compiler * Extensions + Programming Hints + Interfaces + Implementation Specifications + Error Messages * ASCII Character Set 1 “ 12 43 14 1 12 13 14 15 16 1 CONTENTS ———————————$—$<——_ INTRODUCTION 1 Lahey Customér Relations Product Registration . Version Numbers and Update Policies... . . a Lahey Technical Support Services 14d How Lahey Fixes Bugs... 142 Contacting Lahey for Technical Support - eee 1.42.1 Before Contacting Lahey Technical Support .. 1.4.2.2 Information You Provide to Lahey Technical Support . Seay 14.2.3 Electronic Bulletin Board System Procedure... . vi 14.2.4 Mail and Common Carrier Procedures . vit 1425 FAX and UUNET Procedures tee vit 1426 Telephone Procedure . a tees MU Lahey Warranties 54 Lahey’s 30 Day Money Back Guarantoa 182 Lahey’s Extended Warranty... . 153 Lahey-Supported Interfaces 54 Return Procedure. 15.4.1 Return Shipping Instructions - GETTING STARTED 1 Typographic Conventions . . . . . a tal Program Example Conventions The Install Program Modifying Your AUTOEXEC.BAT and CONFIG.SYS Files . 1a Your CONFIG.SYS File Testing the Installation . . Changing Error Message Languages. . Microsoft Windows Considerations... . LAHEY FORTRAN PROGRAMMER'S REFERENCE 1.8 jn Developing in FORTRAN... 20s ses 5 184 ‘Compiling a FORTRAN Program eee 6 4.8.1.1 Errorsin Compilation seat i 7 182 Linking a FORTRAN Program 8 183 Running a FORTRAN Program . 9 CONFIGURING THE COMPILER 14 ‘The FIGS Configuration-File Editor. : eer Compiler Configuration Options cece AR 2.24 Diagnostic Control Compiler Options: aoe 12 2.21.1 IMPLICITNONE .....- 12 2.2.1.2 Non-Conforming Usage ay 7 : 13. 222 Listing and Message Output Compiler Options - ea 2.2.2.1 Hardcopy Listing Output 7 Soe eee 14 2222 Output Compiler Options . - i ae 15 3523 Waring Messages During Compilation. . == + =< --* 15 2.224 Cross-Reference Listing : se 16 223 Porting Compatibility Compiler Options. . - : 7 2231 DirectFiles ..... + eee ert 22.82 Conditional Compilation Directive Parameters . - - 18 2.2.33 — Free-Format Source File eae : 18 2234 Protect Arithmetic Constant Arguments 20 2235 —_Limitthe Intel NDP Stack . . . - . +. = 20 3236 Create Protected-Mode APC interface Modules - 24 2237 Create Real-Mode RPC Interface Modules i at 2238 Romember Local Variables and Arrays - 224 2239 VAXCompatibilty ©... . +++ : 1.22 224 Code Generation Compiler Options... - : 23 2.2.41 Optimize for 80486 Processor. = += : 23 22.42 NDPMemory Operands .. . - eee 23 3243 Optimize INTEGER'2 (or 1) Constant Arithmetic» - = - 24 so 4a — Genorate Weitek 1167/3167/4187 Code 25 2245 Type INTEGER*2 and LOGICAL" as 2 = 26 2246 Perform Production Code Optimizations i 7 1.28 225 Protection and Debugging Options TIT B 2.2.5.1 Allocatable Array Checking « i ae A 2282 BoundsChecking 6. +--+ 27 2253 Interface Checking . - a eee - 28 2254 — Linenumber table See 8 2255 Generate SOLD Information File (SLD) see eseeet rst ae. Trantnan BOAABAMMER'S REFERENCE 2.3 Source/Cross-Reference Listing ... . 234 ‘The Source Listing 23.2 — Line-Number Table 233 Data Storage Area Map. . 234 Symbol Cross-Reference Listing 31 23.5 Label Cross-Reference Listing 22 2.4 — Configuration Suggestions ae 33 3___ LAHEY EXTENSIONS 35 3.1 DOS Interface Subroutines»... 6... 35 344 TIME(result) Subroutine 35 3.42 DATE(result) Subroutine 35 31.3 GETCL(result) Subroutine 35 8.1.4 INTRUP(intery,ntrup) Subroutine 36 3.1.5 SYSTEM(comnd) Subroutine 37 3.1.6 EXIT(level) Subroutine 37 3.4.7 TIMER(ticks) Subroutine 37 3.2 Input/Output Subroutines . . . 38 324 IOSTAT_MSG(iostat, 38 3.22 — FLUSH(iunit) Subroutine . . 38 323 PROMPT(message) Subroutine . . 38 324 PRECFILL(ich) Subroutine 38 325 ERROR(message) Subroutine 39 3.3. Trailing Blanks Intrinsic Functions 40 33.1 ‘The NBLANK Intrinsic Function 40 3.32 The CHARNB Intrinsic Function 40 3.4 Address Intrinsic Functions B41 ‘SEGMENT(item) Intrinsic Function at 3.4.2 OFFSET(tem) Intrinsic Function 241 3.43 — POINTER(item) intrinsic Function 42 3.5 Argument Passing Intrinsic Functions... ... 42 354 CARG Intrinsic Function 42 35.2 %VALIntrinsic Function. . 44 LAHEY FORTRAN PROGRAMMER'S REFERENCE 36 a7 3.8 F77L-EM/32 Language System Extensions 46 3.6.1 OPTION BREAK Statement 48 36.11 OPTIONBREAK .. 2)! 46 36.1.2 OPTIONNBREAK eee 47 3.6.1.3 OPTION BREAK (War). | 47 3.6.1.4 OPTION BREAK ("label) oe a7 362 Free-Format Source Boe ae 1 4B 48 49 50 5 5 52 3.6.2.1 Free-Format Statement Labels 3.6.2.2 Free-Format Statement Continuation 3.6.23 — Free-Format Comment Lines Lahey Graphics Library ...... . . 37.4 Coordinate System 372 Initialization, eee Seat 373 Function and Variable Declarations... ||| | eee ttt ee a74 Graphics Subroutines eee aEREeee ee: 37.4.1 CIRCLE Subroutine | | | ae : 53 37.42 FACTOR Subroutine | Saeco 7 53 37.43 FLL Subroutine. . | a +. 54 3.7.44 — GETPIX Subroutine. ||| 54 37.45 GRINFOSubrouting ||| 55 37.4.6 NEWPEN Subroutine 2.) ||| eee - 86 37.47 PLOT Subroutine... | | | : poet oe 3.7.4.8 PLOTS Subroutine bef geeeee eeeeec ateeeee 3.7.49 BIOS Graphics Modes nanan 89 37.410 SETPIX Subroutine... | ete ar eee ag 3.7.4.11_ WHERE Subroutine | | | eae 60 375 Text in Graphics Mode pesieeeeracect Se 60 37.5.1 GTEXT Subroutine 60 3.7.52 — ISKEY Function... 02.) | | sea 61 37.5.3 IXKEY Function . ee z 62 3.7.8.4 Scan Codes for ALT and Key Pressed Simultaneously : 63 3.7.5.5 Scan Codes for Function Keys CHE i raLe ed, 3.7.5.6 Scan Codes for Keypad Keys 7 65 376 Linking the Graphics Library 2... 0.001)! os 6B IBM VS and DEC VAX Funetions Library a ereecetaiatseeee + 66 3.8.1 linking... 67 382 Table 1 ~1BM VS Functions | 68 383 Table 2 - DEC VAX Functions. 1 vi LAHEY FORTRAN PROGRAMMER'S REFERENCE 23 Source/Cross-Reference Listing... . 234 The Source Listing . . 232 —— Line-Number Table 23.3 Data Storage Area Map 23.4 Symbol Cross-Reference Listing 235 Label Cross-Reference Listing 2.4 — Configuration Suggestions ‘ 3 LAHEY EXTENSIONS 3.1 DOS Interface Subroutines 44 TIME(resuit) Subroutine. . 3.1.2 DATE(resuit) Subroutine 343 GETCL(result) Subroutine 3.4.4 —_ INTRUP(intary,ntrup) Subroutine 31.5 SYSTEM(comnd) Subroutine 346 —— EXIT(llevel) Subroutine 34.7 TIMER(ticks) Subroutine 3.2 Input/Output Subroutines ...... 2.06.0 324 IOSTAT_MSG(iostat.message) Subroutine. 3.22 © FLUSH(iunit) Subroutine : 32.3 PROMPT(message) Subroutine 3.24 PRECFILLitiichr) Subroutine 325 — ERROR(message) Subro 3.3. Trailing Blanks Intrinsic Functions ........ 334 The NBLANK Intrinsic Function 3.32 The CHARNB intrinsic Function 3.4 Address intrinsic Functions ........... 3.44 ‘SEGMENT(item) Intrinsic Function 3.4.2 OFFSET(item) Intrinsic Function 3.4.3 POINTER(item) Intrinsic Function 3.8 Argument Passing Intrinsic Functions. . 354 CARG Intrinsic Function 3.5.2 %VAL intrinsic Function LAHEY FORTRAN PROGRAMMERS REFERENCE 3.6 F77L-EM/32 Language System Extensions... . 36.1 OPTION BREAK Statement ‘ 46 3611 OPTIONBREAK ... Se oeeeeee aur rt a@. 54-212: OPTION NEREAKG teria c ecstatic ane 47 3.6.1.3 OPTION BREAK (Ivar) : 47 361.4 OPTIONBREAK (label) 47 362 FreeformatSouce ........ 00.0.0... ce 8 3.62.1 Free-Format Statement Labels 48 3.622 — Free-Format Statement Continuation... 2.49 36.2.3 — FreeFormatComment Lines... .. ieee ao. 3.7 Lahey Graphics Library . eee seee reece 51 37.1 Coordinate System... : 51 372 Initialization... 2... eee 52 37.3 Function and Variable Declarations ee 1. 82 3.7.4 Graphics Subroutines. . : : 53 37.41 CIRCLE Subroutine 37.42 FACTOR Subroutine - 37.43 FILL Subroutine. 37.44 — GETPIX Subroutine 37.45 — GRINFO Subroutine : 3.7.46 — NEWPEN Subroutine Haeeeaenc : 55 3747 PLOT Subroutine... 2... : +56 37.48 — PLOTS Subroutine Senn meester 2 37.49 — BlOSGraphics Modes cere 59 37.410 SETPIX Subroutine . : ae 59 37.411 WHERE Subroutine : ence +. 60 37.5 TextinGraphicsMode : 60 87.51 — GTEXTSubroutine - 2. 2+. 60 37.52 — ISKEY Function ae é1 3753 — IXKEYFunction. 2.62 37.8.4 Scan Codes for ALT and Key Pressed Simultaneously 63 37.5.5 Scan Codes for Function Keys . 22. 84 37.58 — Scan Codes for Keypad Keys... Ser rees 3.7.6 Linking the Graphies Library. : 85 3.8 IBM VS and DEC VAX Functions Library . . ae Becreenn 2 OAiee tanking Heseceeneneees Header ere 3.82 Table 1 - IBM VS Functions ae eta seep es 383 Table 2—DEC VAX Functions . n vi LAHEY FORTRAN PROGRAMMER’S REFERENCE

Anda mungkin juga menyukai