%LOC Function

The built-in function %LOC computes the internal address of a storage item. It takes the following form:

%LOC (arg)
Is the name of an actual argument. It must be a variable, an expression, or the name of a procedure. (It must not be the name of an internal procedure or statement function.)

The %LOC function produces an integer value that represents the location of the given argument. The value is INTEGER(8) on Alpha and ia64 processors; INTEGER(4) on ia32 processors. You can use this integer value as an item in an arithmetic expression.

The LOC intrinsic function serves the same purpose as the %LOC built-in function.

For More Information:

Previous Page Next Page Table of Contents