Fortran/Catalogs
< Fortran
Jump to navigation
Jump to search
The initial release of FORTRAN for the IBM 704 contained 32 statements, including:
DIMENSION
andEQUIVALENCE
statements- Assignment statements
- Three-way arithmetic
IF
statement. IF
statements for checking exceptions (ACCUMULATOR OVERFLOW
,QUOTIENT OVERFLOW
, andDIVIDE CHECK
); andIF
statements for manipulating sense switches and sense lightsGOTO
, computedGOTO
,ASSIGN
, and assignedGOTO
DO
loops- Formatted I/O:
FORMAT
,READ
,READ INPUT TAPE
,WRITE
,WRITE OUTPUT TAPE
,PRINT
, andPUNCH
- Unformatted I/O:
READ TAPE
,READ DRUM
,WRITE TAPE
, andWRITE DRUM
- Other I/O:
END FILE
,REWIND
, andBACKSPACE
PAUSE
,STOP
, andCONTINUE
FREQUENCY
statement (for providing optimization hints to the compiler)
FORTRAN 66 includes:
- Main program,
SUBROUTINE
,FUNCTION
, andBLOCK DATA
program units INTEGER
,REAL
,DOUBLE PRECISION
,COMPLEX
, andLOGICAL
data typesCOMMON
,DIMENSION
, andEQUIVALENCE
statementsDATA
statement for specifying initial values- Intrinsic and
EXTERNAL
(e.g., library) functions - Assignment statement
GOTO
, assignedGOTO
, and computedGOTO
statements- Logical
IF
and arithmetic (three-way)IF
statements DO
loopsREAD
,WRITE
,BACKSPACE
,REWIND
, andENDFILE
statements for sequential I/OFORMAT
statementCALL
,RETURN
,PAUSE
, andSTOP
statements- Hollerith constants in
DATA
andFORMAT
statements, and as actual arguments to procedures - Identifiers of up to six characters in length
- Comment lines
FORTRAN 77 includes:
- Block
IF
andEND IF
statements, with optionalELSE
andELSE IF
clauses. - DO loop extensions, including parameter expressions, negative increments, and zero trip counts
OPEN
,CLOSE
, andINQUIRE
statements for improved I/O capability- Direct-access file I/O
IMPLICIT
statementCHARACTER
data type, with vastly expanded facilities for processing of character-based dataPARAMETER
statement for specifying constantsSAVE
statement for persistent local variables- Generic names for intrinsic functions
- A set of intrinsics (
LGE, LGT, LLE, LLT
) for lexical comparison of strings, based upon the ASCII collating sequence. DO WHILE
andEND DO
statementsINCLUDE
statementIMPLICIT NONE
variant of theIMPLICIT
statement- Bit manipulation intrinsic functions, based on similar functions included in Industrial Real-Time Fortran (ANSI/ISA S61.1 (1976))