06.03.2014 Views

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

B <strong>Intel</strong> <strong>Fortran</strong> <strong>Language</strong> <strong>Reference</strong><br />

If more than one object=value or more than one value is specified, they must be separated by value<br />

separators.<br />

A value separator is any number of blanks, or a comma or slash, preceded or followed by any<br />

number of blanks.<br />

See Also<br />

• “Rules for Namelist Sequential READ Statements” for details on namelist input<br />

• “Rules for Namelist Sequential WRITE Statements” for details on namelist output<br />

Integer POINTER Statement<br />

The POINTER statement discussed here is different from the one discussed in “POINTER<br />

Attribute and Statement”. It establishes pairs of variables and pointers, in which each pointer<br />

contains the address of its paired variable.<br />

This POINTER statement takes the following form:<br />

POINTER (pointer, pointee) [, (pointer, pointee)] . . .<br />

pointer<br />

Is a variable whose value is used as the address of the pointee.<br />

pointee<br />

Is a variable; it can be an array name or array specification.<br />

Rules and Behavior<br />

The following are pointer rules and behavior:<br />

• Two pointers can have the same value, so pointer aliasing is allowed.<br />

• When used directly, a pointer is treated like an integer variable. On <strong>Intel</strong>® Itanium®<br />

processors, a pointer occupies two numeric storage units, so it is a 64-bit quantity<br />

(INTEGER(8)). On IA-32 processors, a pointer occupies one numeric storage unit, so it is a<br />

32-bit quantity (INTEGER(4)).<br />

• A pointer cannot be a pointee.<br />

• A pointer cannot appear in an ASSIGN statement and cannot have the following attributes:<br />

ALLOCATABLE INTRINSIC POINTER<br />

EXTERNAL PARAMETER TARGET<br />

A pointer can appear in a DATA statement with integer literals only.<br />

• Integers can be converted to pointers, so you can point to absolute memory locations.<br />

• A pointer variable cannot be declared to have any other data type.<br />

B-12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!