SOSO/SOS5 Processor Dependencies

FORTRAN-SO

F.2.1 Lowercase Letters

Except within Hollerith and character constants, a lowercase letter is considered to be identical to its corresponding uppercase letter.

F.2.2 Port Input/Output

The compiler provides two intrinsic subroutines for handling input/ output through SOSO/SOS5 110 ports. When these subroutines are called, they generate SOSO IN and OUT instructions.

The form of the subroutine calls is

CALL INPUT (port, var)

CALL OUTPUT (port, exp)

where

portis an integer constant in the range o~ port ~ 255

varis an integer variable

expis an integer expression

The value read or written through the specified port is always a single-byte integer (lNTEGER*l).

Examples:

CALL INPUT(1, TEST1)

CALL OUTPUT(2, 100)

F.2.3 Reentrant Procedures

External procedures can be made reentrant by setting the REENTRANT compiler control. Reentrant procedures can call themselves directly or indirectly. Local variables are allocated in stack storage when the procedure is entered, rather than being statically allocated. Local variables and arrays must not be initialized by DAT A statements in reentrant procedures.

The REENTRANT control precedes the entire program and is coded in the form

$REENTRANT

where the '$'must be in column 1.

F.2.4 Free-form Line Format

Normally, FORTRAN source file lines must be in the standard line format. To simplify entering FORTRAN programs through a console terminal, however, the FORTRAN-SO compiler allows 'free-form' lines. To use this feature, simply insert the control line

$FREEFORM

into the program before the first program unit in the source file

F-2

Page 116
Image 116
Intel fortran-80 manual Call Input port, var Call Output port, exp, Call INPUT1, TEST1 Call OUTPUT2, $Reentrant, $Freeform