comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Waiver question
Date: 1997/05/01
Date: 1997-05-01T00:00:00+00:00	[thread overview]
Message-ID: <1997May1.071854.1@eisner> (raw)
In-Reply-To: dewar.862381265@merv


In article <dewar.862381265@merv>, dewar@merv.cs.nyu.edu (Robert Dewar) writes:
> Richard Kenner said
> 
> <<The problem with these sequences is that they are not atomic.  That
> is that problem that will be remedied on Alpha processors starting
> with EV56.>>
> 
> Of course in Ada they do not *need* to be atomic -- if you waste a bit
> of space to make sure stand alone objects are not too close together,
> and the same in records.
> 
> You don't need to worry about atomic access in any packed structure of
> course, and the standard string type is packed (i.e. it is erroneous
> for one task to store the 3rd charater of a string while another task
> loads the fourth character).

Although a compiler can take care to place separate components
of an unpacked structure into separate quadwords, a programmer
can use representation clauses to bring them back together. If
a programmer uses representation clauses that is an implicit
declaration that they know what they are doing, so compiler
warnings seem inappropriate.

But programmers often do not know what they are doing. Alpha
programs often have code which does not properly handle atomicity,
and until recently even VMS had at least one such piece of code
(not written in Ada) of which I am aware.

Larry KIlgallen




  reply	other threads:[~1997-05-01  0:00 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-18  0:00 Waiver question Ken Garlington
1997-04-19  0:00 ` Tom Moran
1997-04-20  0:00 ` Robert Dewar
1997-04-21  0:00   ` Ken Garlington
1997-04-22  0:00     ` Ken Garlington
1997-04-23  0:00       ` Corey Minyard
1997-04-24  0:00         ` Richard Kenner
1997-04-28  0:00         ` Larry Kilgallen
1997-04-28  0:00           ` Corey Minyard
1997-04-29  0:00             ` Robert Dewar
1997-04-29  0:00             ` Kaz Kylheku
1997-04-29  0:00             ` Laurent Guerby
1997-04-30  0:00               ` Corey Minyard
1997-04-29  0:00           ` Robert Dewar
1997-04-29  0:00           ` Richard Kenner
1997-04-30  0:00             ` Robert A Duff
1997-05-01  0:00               ` Kaz Kylheku
1997-05-02  0:00                 ` Robert A Duff
1997-05-02  0:00                   ` Larry Kilgallen
1997-05-02  0:00                     ` Robert Dewar
1997-05-02  0:00                     ` Robert A Duff
1997-05-02  0:00                       ` Larry Kilgallen
1997-05-03  0:00                         ` Robert A Duff
1997-05-03  0:00                           ` Larry Kilgallen
1997-05-04  0:00                             ` Robert Dewar
1997-05-04  0:00                         ` Robert Dewar
1997-05-06  0:00                     ` John M. Mills
1997-04-30  0:00             ` Robert Dewar
1997-05-01  0:00               ` Larry Kilgallen [this message]
1997-05-07  0:00                 ` Bad .diff files in gnat-3.09 in Linux Benoit Jauvin-Girard
1997-05-09  0:00                   ` Albert K. Lee
1997-04-23  0:00     ` Waiver question Tarjei Jensen
1997-04-20  0:00 ` Dean Runzel
1997-04-22  0:00   ` Ken Garlington
1997-04-20  0:00 ` Steve Doiel
1997-04-21  0:00 ` Robert I. Eachus
1997-04-21  0:00   ` Robert Dewar
1997-04-22  0:00     ` Robert I. Eachus
1997-04-23  0:00       ` Robert Dewar
1997-04-22  0:00   ` Ken Garlington
1997-04-23  0:00     ` Robert S. White
1997-04-24  0:00     ` Robert Dewar
1997-04-24  0:00       ` Steve Vestal
1997-04-25  0:00         ` Ken Garlington
1997-04-25  0:00         ` Robert I. Eachus
replies disabled

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