comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <nickroberts@blueyonder.co.uk>
Subject: Re: Q re pack & aliased
Date: Wed, 23 Apr 2003 00:10:23 +0100
Date: 2003-04-23T00:10:23+01:00	[thread overview]
Message-ID: <b84i4t$6ajfe$1@ID-25716.news.dfncis.de> (raw)
In-Reply-To: Hjjpa.47142$Si4.29509@rwcrnsc51.ops.asp.att.net

I think I have the solution!

I suggest that 'aliased' was always inappropriate anyway.

When you are declaring an object which will overlay a piece of memory that
will correspond to some external entity (e.g. an address range corresponding
to a memory-mapped I/O facility, such as a memory-mapped graphics device),
you do not need (or want) 'aliased', you need to mark the object (or its
static subtype) as 'volatile'. This is done with the Volatile pragma, see
RM95 C.6.

--
Nick Roberts
Jabber: debater@charente.de [ICQ: 159718630]






  reply	other threads:[~2003-04-22 23:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-20  1:08 Q re pack & aliased tmoran
2003-04-20 11:40 ` David Holm
2003-04-21  4:44   ` tmoran
2003-04-22 16:08     ` Jacob Sparre Andersen
2003-04-22 16:30       ` Vinzent Hoefler
2003-04-22 16:44         ` tmoran
2003-04-22 17:23           ` Stephen Leake
2003-04-22 21:45             ` Robert A Duff
2003-04-22 22:25               ` tmoran
2003-04-22 23:10                 ` Nick Roberts [this message]
2003-04-23  0:24                   ` tmoran
2003-04-23  8:07                     ` Vinzent Hoefler
2003-04-23 17:18                       ` tmoran
2003-04-23 19:28                         ` Vinzent Hoefler
2003-04-23 11:52                     ` Martin Dowie
2003-04-25 16:06                     ` Nick Roberts
2003-04-25 16:38                       ` Vinzent Hoefler
2003-04-22 22:51           ` Matthew Heaney
2003-04-22 23:16             ` Nick Roberts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox