Je bent nu offline; er wordt gewacht tot er weer een internetverbinding is

FORTRAN 5.1 LEESMIJ.DOC: Toevoegingen aan de handleiding

BELANGRIJK: Dit artikel is vertaald door de vertaalmachine software van Microsoft in plaats van door een professionele vertaler. Microsoft biedt u professioneel vertaalde artikelen en artikelen vertaald door de vertaalmachine, zodat u toegang heeft tot al onze knowledge base artikelen in uw eigen taal. Artikelen vertaald door de vertaalmachine zijn niet altijd perfect vertaald. Deze artikelen kunnen fouten bevatten in de vocabulaire, zinsopbouw en grammatica en kunnen lijken op hoe een anderstalige de taal spreekt en schrijft. Microsoft is niet verantwoordelijk voor onnauwkeurigheden, fouten en schade ontstaan door een incorrecte vertaling van de content of het gebruik ervan door onze klanten. Microsoft past continue de kwaliteit van de vertaalmachine software aan door deze te updaten.

De Engelstalige versie van dit artikel is de volgende: 73256
Vrijwaring inhoud KB-artikelen over niet langer ondersteunde producten
Dit artikel heeft betrekking op producten waarvoor Microsoft geen ondersteuning meer biedt. Daarom wordt dit artikel alleen in de huidige vorm aangeboden en wordt het niet meer bijgewerkt.
Samenvatting
Het volgende is het gedeelte "Toevoegingen aan Microsoft handleiding"uit de FORTRAN versie 5.1 Leesmij.DOC:
Meer informatie
                            README.DOC File              Release notes for the Microsoft(R) FORTRAN             Professional Development System, Version 5.1This document contains release notes for version 5.1 of the MicrosoftFORTRAN Professional Development System for MS-DOS(R) and theMicrosoft Operating System/2 (MS(R) OS/2). The information in thisdocument is more up-to-date than that in the manuals and the MicrosoftAdvisor (online help).Microsoft improves its languages documentation at the time ofreprinting, so some of the information in this file may already be inyour manuals.=========< Additions to the Microsoft FORTRAN Reference >============/Gt option----------The /Gt, or data threshold, compiler option can remedy a number oflink-time and run-time errors in FORTRAN 5.1.  The /Gt option sets athreshold value that determines where data items are stored inmemory. Data items that are greater in size than the threshold value,and that would normally be stored in the default data segment, orDGROUP, are moved to a far segment of data.  This frees up more roomin DGROUP for variables less than the threshold value and for otheruses, such as the program STACK and NEAR HEAP.Using the /Gt switch can often help eliminate the LINK errors:     L1070: 'segment name':Segment exceeds 64Kwhere segment can be _BSS or _DATA     L2041: Stack Plus Data exceeds 64Kand the run-time error:     F6700: Heap Space Limit ExceededIn each of these cases, too much data is being stored in DGROUP, andusing the /Gt switch may free up the required space.  See Section 7.6of the FORTRAN 5.1 Reference for more information./Oc Option----------When you use the /Oc (default common subexpression optimization), thecompiler examines only short sections of code for commonsubexpressions. You can disable default common subexpressionoptimization with the /Od option.Special Device Names--------------------The list of special device names in the FORTRAN Reference Manual isincomplete.  The complete list of special device names is:     Device Name              Comments     ===========              ========     CON                      stdout, stdin     USER                     stdout, stdin     COM1                     COM1 port     AUX                      COM1 alias     LINE                     COM1 alias     LPT1                     stdprn     PRN                      stdprn     LPT2     LPT3     LPT4     ERR                      stderr     NUL                      null deviceNote that COM2, COM3, and COM4 are not special device names inFORTRAN 5.1.To access these devices, use an OPEN statement of the form:      OPEN (10, FILE='lpt1')For connections to LPT2 or COM2, you are also required to specifySTATUS='old'.  These two devices are not treated as standard deviceslike LPT1 and COM1.  Output to these devices is of the same form asto a file, i.e. the output is buffered and carriage controlcharacters in column 1 are ignored.** NOTE ** The above section of the README.DOC is incorrect.  LPT2-4are treated as special device names by FORTRAN 5.10 and do notrequire STATUS='OLD', nor do they ignore carriage control.  The aboveinformation still applies to COM2-4, however./ND Option----------When using the /ND option in a module, you must also set the loaddsattribute on all subprograms called from outside the module.Restrictions on String Assignment---------------------------------The right and left sides of a string assignment may not reference thesame memory location.  For example, the following may fail becausethe generated code overlays the input as it produces the output:     character *10 string/'0123456789'     string = '#' // string     write (*,*) 'string = ' string     endIBM VS Extensions in Microsoft FORTRAN-----------------------------------------Microsoft FORTRAN supports only the following IBM VS FORTRANextensions:- 31-character names- Allowing integer arrays to contain FORMAT specifications- DO statements without specified labels- DO WHILE statement- END DO statement- Equivalence of character and non character items- Mixing of character and non-character items in COMMON- NAMELIST- Specification of common block items in DATA outside block data    subprograms- Initialization on the declaration line- IMPLICIT NONE- INCLUDE- Length specification within declarations- Noninteger array subscripts- Z edit descriptor- ! comments- $ and _ in identifiers$NOTRUNCATE Metacommand-----------------------$NOTRUNCATE is now the default. As a result, it is possible to createvariable names, common block names, and function or subroutine namesthat are longer than the 26-character space allotted in a .LST file.If these identifiers do not differ in the first 26 characters, the.LST file shows them with the same name.New NINT Functions------------------Three NINT intrinsic functions have been added: NINT1, NINT2, andNINT4. These return integer values of one, two, and four bytesrespectively.The /4I2 Switch and the INT and NINT Functions----------------------------------------------The length of the value returned by the INT and NINT intrinsicfunctions is determined by the integer storage switch: two bytes if/4I2 is used, four bytes if /4I4 (the default) is used.If you want these functions to return a value with a length differentfrom the length set by the integer storage switch, use INT1, INT2, orINT4 instead of INT, and use NINT1, NINT2, or NINT4 instead of NINT.80387 Coprocessor Instructions------------------------------The run-time libraries recognize the presence of an 80387coprocessor. If you are not using the alternate math package, thelibrary uses the 80387 SIN and COS instructions, rather than derivingsines and cosines from the FPTAN instruction.Array Conformity in Functions and Subroutines---------------------------------------------A formal array argument in a subroutine or function does not have tohave the same number of dimensions or total size as the actual arrayargument passed to it. This permits the procedure to contain a formalarray that is as large as you think you will ever need; the callingprogram can then pass any array of the same size or smaller.Note, however, that if the formal and actual dimensions do not matchin quantity and size, the formal array elements do not point to thesame memory locations as the actual array elements with the samesubscripts. In this case, your program has to calculate the correctsubscripts."Out of Memory" Error Message-----------------------------This compiler error does not have an error number. It occurs when theFL program does not have sufficient memory, as in the followingcases:1. You used wildcard characters to specify the files to be compiled(for example, FL *.FOR) and there were too many files. The exactnumber of files that can be handled depends on the amount of systemmemory.2. The computer did not have enough free memory. This may occur whenother processes are running under Microsoft Windows or OS/2.Additional Compiler Error Messages----------------------------------F2399: <name> : COMMON (or EQUIVALENCE) : automatic variable illegal.A variable previously declared as AUTOMATIC cannot appear in a COMMONblock or an EQUIVALENCE statement.F4187: Debugging information exceeds 64K - extra ignored.There was more debugging information than could fit in the allotted64K space. The additional information (which is usually symbols) wasdiscarded.Revised Compiler Error Message------------------------------The <attribute> in error message F2384 can be "common block" or"equivalenced," in addition to ALLOCATABLE, EXTERN, FAR, or HUGE.Linker Path Specification-------------------------The /link option does not allow you to specify the linker's path. FLassumes the linker is in the same directory as the compiler.FL Switch Default Values------------------------If no switches appear in the FL command line, the source code iscompiled with the following defaults:1. The Large memory model is used2. The 8086/8088 instruction set is used3. 8087/287/387 in-line instructions are used for floating-point   calculations4. Variable, subroutine, or function names are not truncated5. All integer and single-precision floating-point numbers are four   bytes6. All Microsoft extensions to FORTRAN are enabled7. FORTRAN 66-style DO statements are disabled8. Full optimization is performed9. Debugging (extended run-time error handling) is disabledAny metacommands in a source code file override these defaults.Compiling Extremely Large Programs----------------------------------This release contains the file F1L.EXE, which is an alternate form ofthe Compiler Pass 1 disk if you need it.This compiler pass is used to compile programs that receive errormessage "F1901: program too large for memory." The F1L.EXE pass isinvoked by adding the /B1 option to the FL command line, as follows:     FL  /B1  F1L.EXE  <sourcefile>.FORwhere <path> is the path (including drive and directory) whereF1L.EXE resides, and <sourcefile> is the name of the FORTRAN sourcefile you are compiling. Alternatively, you can rename F1L.EXE toF1.EXE to make the high-capacity version the default.Compiler Errors and Warnings Generated by $DEBUG and /4Yb---------------------------------------------------------In addition to the expanded run-time error handling and testingthat $DEBUG and /4Yb enable, there are a number of compiler errorsand warnings that appear if $DEBUG or /4Yb are used. They are:Error F2367: INTEGER : range errorError F2533: lower substring bound exceeds upper boundError F2534: upper substring bound exceeds string lengthError F2535: lower substring bound not positiveError F2536: subscript out of rangeWarning F4501: subscript out of range (array argument)				
5.10

Waarschuwing: dit artikel is automatisch vertaald

Eigenschappen

Artikel-id: 73256 - Laatst bijgewerkt: 06/09/2012 10:09:00 - Revisie: 4.0

  • kbmt KB73256 KbMtnl
Feedback