* Unrecognized attribute 'ref in GNAT
@ 1999-01-12 0:00 Oliver Hilgendorf
1999-01-12 0:00 ` David C. Hoos, Sr.
1999-01-13 0:00 ` Tucker Taft
0 siblings, 2 replies; 3+ messages in thread
From: Oliver Hilgendorf @ 1999-01-12 0:00 UTC (permalink / raw)
GNAT has problems with the statement
Base_Addr : constant System.Address := System.Address'Ref
(16#A000_0000#);
It says that Ref is an unrecognized attribute. With a different
compiler it works just fine.
Oliver
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unrecognized attribute 'ref in GNAT
1999-01-12 0:00 Unrecognized attribute 'ref in GNAT Oliver Hilgendorf
@ 1999-01-12 0:00 ` David C. Hoos, Sr.
1999-01-13 0:00 ` Tucker Taft
1 sibling, 0 replies; 3+ messages in thread
From: David C. Hoos, Sr. @ 1999-01-12 0:00 UTC (permalink / raw)
Oliver Hilgendorf wrote in message <369bb407.18423120@news.nacamar.de>...
>GNAT has problems with the statement
>
>Base_Addr : constant System.Address := System.Address'Ref
>(16#A000_0000#);
>
>
>It says that Ref is an unrecognized attribute. With a different
>compiler it works just fine.
>
The attribute 'Ref is not defined by Ada.
This looks like a VADS extension -- I've forgotten just what 'Ref means.
You'll need to consult
Appendix F for the "different" compiler, to understand what 'Ref means, and
apply the equivalent capability of Ada95. If it's legal Ada95, GNAT will do
it.
David C. Hoos, Sr.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unrecognized attribute 'ref in GNAT
1999-01-12 0:00 Unrecognized attribute 'ref in GNAT Oliver Hilgendorf
1999-01-12 0:00 ` David C. Hoos, Sr.
@ 1999-01-13 0:00 ` Tucker Taft
1 sibling, 0 replies; 3+ messages in thread
From: Tucker Taft @ 1999-01-13 0:00 UTC (permalink / raw)
Oliver Hilgendorf (news@hilgendorf.de) wrote:
: GNAT has problems with the statement
: Base_Addr : constant System.Address := System.Address'Ref
: (16#A000_0000#);
: It says that Ref is an unrecognized attribute. With a different
: compiler it works just fine.
"Ref" is an implementation-defined attribute. Ada 95 defines
a function for converting from integer to address in
the package System.Storage_Elements. The following should
work on any Ada 95 compiler:
Base_Addr : constant System.Address := System.Storage_Elements.To_Address
(16#A000_0000#);
: Oliver
--
-Tucker Taft stt@averstar.com http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.) Burlington, MA USA
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-01-13 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-12 0:00 Unrecognized attribute 'ref in GNAT Oliver Hilgendorf
1999-01-12 0:00 ` David C. Hoos, Sr.
1999-01-13 0:00 ` Tucker Taft
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox