Sun Studio 12: Fortran Library Reference

2.3.4 Other Extensions

The Fortran 95 compiler recognizes the following additional intrinsic functions:

2.3.4.1 MPI_SIZEOF

MPI_SIZEOF( x, size, error)

Returns the size in bytes of the machine representation of the given variable, x. If x is an array, it returns the size of the base element and not the size of the whole array

input; variable or array of arbitrary type 

size

output; integer; size in bytes of x

error

output; integer; set to an error code if an error detected, zero otherwise 

2.3.4.2 Memory Functions

Memory allocation, reallocation, and deallocation functions malloc(), realloc(), and free() are implemented as f95 intrinsics. See 1.4.35 malloc, malloc64, realloc, free: Allocate/Reallocate/Deallocate Memory for details.