FORTRAN 77 Language Reference

Memory @

None of these functions are part of the FORTRAN 77 Standard.

Table 6-8 Memory Functions

Intrinsic Function 

Definition 

No. of Args 

Specific Name 

Argument Type 

Function Type 

Location 

Address of 

See Note (17).

LOC AnyINTEGER*4 INTEGER*8

Allocate 

Allocate memory and return address. 

See Note (17).

MALLOC MALLOC64 INTEGER*4 INTEGER*8INTEGER INTEGER*8

Deallocate 

Deallocate memory allocated by MALLOC. See Note (17).

FREE Any -

Size 

Return the size of the argument in bytes. 

See Note (18).

SIZEOF

Any expression

INTEGER

Although malloc and free are not, strictly speaking, intrinsics, they are listed here and in the Fortran Library Reference.