4 with System
, Ada
.Unchecked_Conversion
;
5 with System
.Storage_Elements
; use System
.Storage_Elements
;
7 procedure Loop_Address2
is
9 type Ptr
is access all Integer;
11 function To_Ptr
is new Ada
.Unchecked_Conversion
(System
.Address
, Ptr
);
13 function F
(BM
: System
.Address
; I
: Integer) return System
.Address
is
15 return BM
+ Storage_Offset
(4*I
);
23 P
:= To_Ptr
(F
(B
'Address, I
));