comp.lang.ada
 help / color / mirror / Atom feed
From: Jere <jhb.chat@gmail.com>
Subject: Re: Comparing Access Types
Date: Fri, 10 Nov 2017 07:11:20 -0800 (PST)
Date: 2017-11-10T07:11:20-08:00	[thread overview]
Message-ID: <94c0c879-6a6b-499e-82e2-f8a5c84f42a3@googlegroups.com> (raw)
In-Reply-To: <ou3obs$o2n$1@gioia.aioe.org>

On Friday, November 10, 2017 at 3:35:10 AM UTC-5, Dmitry A. Kazakov wrote:
> On 09/11/2017 23:38, Robert A Duff wrote:
> > "Dmitry A. Kazakov" writes:
> > 
> >> ...Actually even equality cannot
> >> be for segmented memory but it felt good enough.
> > 
> > ?
> > 
> > "=" returns True if two access values designate the same object,
> > which is a well defined concept, and has nothing to do with
> > segmented memory.  And it's easy to implement, whether memory
> > is segmented or not.
> 
> You could have two segments mapped to the same physical memory. Then you 
> may have two unequal segmented addresses pointing to the same physical 
> memory unit and so "=" will lie.
> 
> -- 
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de

I know that a lot of the embedded C compilers that we use overcome
this issue by encoding unique segment information into their pointers.
So a pointer isn't just a physical address, but something more that
expresses a unique location based on physical memory location + whatever
other information is available.  I don't know enough about Ada compilers,
but my expectation is that they could also solve that problem (maybe
the same way or maybe in a better way).


  reply	other threads:[~2017-11-10 15:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-09  5:37 Comparing Access Types Jere
2017-11-09  8:29 ` Simon Wright
2017-11-09  8:33 ` Dmitry A. Kazakov
2017-11-09 22:38   ` Robert A Duff
2017-11-10  8:35     ` Dmitry A. Kazakov
2017-11-10 15:11       ` Jere [this message]
2017-11-10 16:05       ` Robert A Duff
2017-11-10 16:30         ` Robert A Duff
2017-11-16  1:17           ` Randy Brukardt
2017-11-18 22:01             ` Robert A Duff
2017-11-20 22:25               ` Randy Brukardt
2017-11-21  0:30                 ` Shark8
2017-11-21  8:57                   ` Dmitry A. Kazakov
2017-11-22  1:01                     ` Randy Brukardt
2017-11-10 15:20     ` Jere
2017-11-10 16:00       ` Robert A Duff
2017-11-10 16:22         ` Jere
2017-11-10 15:06   ` Jere
2017-11-16  1:21     ` Randy Brukardt
2017-11-16  1:13 ` Randy Brukardt
replies disabled

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