Ada Programming/Attributes/'To Address

Description
System'To_Address (X) is a GNAT specific attribute with the same purpose of function System.Storage_Elements.To_Address. The only difference is that it can be used in preelaborated units where non-static calls are not allowed. X is a value of that type System.Storage_Elements.Integer_Address (an implementation-defined integer type), and note that this attribute is not applied to the type of X but always to package System.

Example
Using the standard Ada To_Address function:

Sensor' use .To_Address (16#0FF2_1234#);

Using the GNAT specific To_Address attribute:

Sensor' use ' (16#0FF2_1234#);

Wikibook

 * Ada Programming
 * Ada Programming/Libraries/System.Storage_Elements

GNAT Reference Manual

 * GNAT Implementation Defined Attributes: To_Address

|To_Address