Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

Statements for Program Unit Calls and Definitions

The following table lists statements used for program unit definition and procedure call and return.

Name

Description

BLOCK DATA

Identifies a block-data subprogram.

CALL

Executes a subroutine.

COMMON

Delineates variables shared between program units.

CONTAINS

Identifies the start of module procedures within a host module, contained procedures within a procedure, or bound procedures within a type.

ENTRY

Specifies a secondary entry point to a subroutine or external function.

EXTERNAL

Declares a name to be that of a user-defined subroutine or function, making it passable as an argument.

FUNCTION

Identifies a program unit as a function.

GENERIC

Specifies a generic identifier for one or more specific procedures or type bound procedures.

IMPORT

Makes entities from the host scoping unit accessible or inaccessible.

INCLUDE

Inserts the contents of a specified file into the source file. It is not considered a Fortran statement; it is referred to as an include line.

INTERFACE

Specifies an explicit interface for external functions and subroutines.

INTRINSIC

Declares a predefined function.

MODULE

Identifies a module program unit.

PROCEDURE

Declares procedure pointers, dummy procedures, external procedures, and type-bound procedures.

PROGRAM

Identifies a program unit as a main program.

RETURN

Returns control to the program unit that called a subroutine or function.

SUBROUTINE

Identifies a program unit as a subroutine.

USE

Gives a program unit access to a module.