. mips :: RISCos :: 3103DOC MIPS-FORTRAN Programmers Guide and Language Reference May1989. l procedure in a subprogram mustnot appear in an equivalence list. 2. A variable name that is also a function name must not appear in the list 3. A storage unit can appear in no more than one EQUIVALENCE storage se-quence. 4. An EQUIVALENCE statement must not specify that consecutive storageunits are to occupy nonconsecutive storage positions. 5. An EQUIVALENCE statement must not specify that a storage unit in onecommon block be associated with any storage unit in a different commonblock. ( Example 1 DIM
. mips :: RISCos :: 3103DOC MIPS-FORTRAN Programmers Guide and Language Reference May1989. l procedure in a subprogram mustnot appear in an equivalence list. 2. A variable name that is also a function name must not appear in the list 3. A storage unit can appear in no more than one EQUIVALENCE storage se-quence. 4. An EQUIVALENCE statement must not specify that consecutive storageunits are to occupy nonconsecutive storage positions. 5. An EQUIVALENCE statement must not specify that a storage unit in onecommon block be associated with any storage unit in a different commonblock. ( Example 1 DIMENSION M(3,2),P(6) EQUIVALENCE (M(2,1),P(1)) The following figure shows the logical representation in storage caused by theabove two statements: ( 4-20 Part II: FORTRAN Language Reference Specification Statements EQUIVALENCE Example 2 M(l,l) M(2,l) M(2,3) M(l,2) M(2,2) M(3,2) J J J 1 1 P(l) P(2) P(3) P(4) P(5) P(6) CHARACTER ABT*6, BYT(2)*4, CDT*3EQUIVALENCE (ABT , BYT(1)), (CDT, BYT(2)) The following figure shows the logical representation in storage caused by theabove two statements:. The following examples using EQUIVALENCE statements are invalid: REAL A(2) DOUBLE PRECISION S(2) EQUIVALENCE (A(l), S(l)), (A(2), S(2)) This specifies that consecutive storage units are to occupy nonconsecutive stor-age positions. Note that a double precision variable occupies two consecutivenumeric storage units in a storage sequence. Part II: FORTRAN Language Reference 4-21 Chapter 4 PurposeUse Syntax Rules for Use EXTERNAL Identify external or dummy procedure. Specifies that a symbolic name represent an external procedure or a dummy pro-cedure. This allows that name to be used as an actual argument in a programunit. EXTERNAL proc [fproc] ... where proc is a name of an external procedure or dummy procedure. 1. An external procedure name or a dummy procedure name must appear in anEXTERNAL statement in the program unit, if the name is to be used as anactual argument in that program unit. 2. If a
Size: 3181px × 786px
Photo credit: © The Reading Room / Alamy / Afripics
License: Licensed
Model Released: No
Keywords: ., bookcentury1900, bookdecade1910, booksubjectlanguag, bookyear1919