24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Language</strong> <strong>Reference</strong><br />

12.3.58 Allocated Array<br />

Definition:<br />

Name:<br />

ALLOCATED<br />

Is array A allocated?<br />

Usage:<br />

L ←ALLOCATED(A)<br />

12.3.59 Memory Location<br />

Definition:<br />

Name:<br />

LOC<br />

Location of A where A is any variable, array or array element<br />

Usage:<br />

I ←LOC(A)<br />

12.3.60 Size of Variable or Structure<br />

Definition:<br />

Name:<br />

ISIZEOF<br />

Notes:<br />

Size of A in bytes where A is any constant, variable, array, or structure<br />

Usage:<br />

I ←ISIZEOF(A)<br />

The size reported for a constant or simple variable is based on its type. The size of a<br />

CHARACTER constant is the number of characters in the constant. The size reported<br />

for an array is the size of the storage area required for the array. The size reported for<br />

a structure is the size of the storage area required for the structure. An assumed-size<br />

CHARACTER variable, assumed-size array, or allocatable array has size 0.<br />

12.3.61 Volatile <strong>Reference</strong><br />

Definition:<br />

Name:<br />

VOLATILE<br />

Notes:<br />

A is a volatile reference<br />

Usage:<br />

A ←VOLATILE(A)<br />

A volatile reference to a symbol indicates that the value of the symbol may be<br />

modified in ways that are unknown to the subprogram. For example, a symbol in<br />

common being referenced in a subprogram may be modified by another subprogram<br />

that is processing an asynchronous interrupt. Therefore, any subprogram that is<br />

referencing the symbol to determine its value should reference this symbol using the<br />

VOLATILE intrinsic function so that the value currently being evaluated agrees with<br />

the value last stored.<br />

270 Intrinsic Functions

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

Saved successfully!

Ooh no, something went wrong!