Intel® Fortran Compiler 16.0 User and Reference Guide

Statements and Intrinsic Procedures for Memory Allocation and Deallocation

The following table lists statements and intrinsic procedures that are used for memory allocation and deallocation.

Name

Procedure Type

Description

ALLOCATE

Statement

Dynamically establishes allocatable array dimensions.

ALLOCATED

Intrinsic Function

Determines whether an allocatable array is allocated.

DEALLOCATE

Statement

Frees the storage space previously reserved in an ALLOCATE statement.

FREE

Intrinsic Subroutine

Frees the memory block specified by the integer pointer argument.

MALLOC

Intrinsic Function

Allocates a memory block of size bytes and returns an integer pointer to the block.

MOVE_ALLOC

Intrinsic Subroutine

Moves an allocation from one allocatable object to another.