comp.lang.ada
 help / color / mirror / Atom feed
From: jb@rti.UUCP (Jeff Bartlett)
Subject: Re: Overlays
Date: 16 Sep 88 22:49:51 GMT	[thread overview]
Message-ID: <2459@rti.UUCP> (raw)
In-Reply-To: 3338@cs.utexas.edu

In article <3338@cs.utexas.edu>, fred@cs.utexas.edu (Fred Hosch) writes:
> LRM 13.5 tells me "address clauses should not be used to achieve overlays
> of objects."  How do I "achieve overlays" of --very large-- objects?
> 
> Fred. Hosch
> fred@cs.utexas.edu

It sounds like you are trying to save storage by sharing the space
of large objects with disjoint but static lifetimes.

One method is to declare pointers to the objects and allocate the object
at the beginning of its lifetime and dispose of it at the end of its lifetime.

Also, one could use renaming to avoid all of the "PTR.ALL" references.

To get equivalencing, use UNCHECKED_CONVERSION between the pointers. (I think
it takes access types).


Jeff Bartlett
Center for Digital Systems Research
Research Triangle Institute		jb@rti.rti.org		mcnc!rti!jb
-

      reply	other threads:[~1988-09-16 22:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1988-09-15 21:46 Overlays Fred Hosch
1988-09-16 22:49 ` Jeff Bartlett [this message]
replies disabled

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