help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Constancy of X'Address?
Date: Wed, 5 Apr 2023 12:24:39 +0300	[thread overview]
Message-ID: <> (raw)

A discussion in comp.arch (on the new C23 standard for C) brought up 
these questions, which I could not answer with confidence:

- Is the address of an object constant in Ada? That is, if I have some 
object X in an Ada program, do repeated applications of X'Address always 
return the same value?

- Does the answer depend on how X is allocated (created): on the library 
level, on the stack, or in a pool ("new")?

The issue behind this question is whether an Ada program could use 
garbage collection that moves objects around, for example a compacting 

             reply	other threads:[~2023-04-05  9:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-05  9:24 Niklas Holsti [this message]
2023-04-07 17:04 ` Constancy of X'Address? Maxim Reznik
2023-04-07 17:19 ` Jeffrey R.Carter
2023-04-08  9:03 ` 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