comp.lang.ada
 help / color / mirror / Atom feed
From: "DuckE" <nospam_steved94@home.com>
Subject: Re: Help with Atomic_Components and whole array assignment
Date: Wed, 31 Jan 2001 05:08:21 GMT
Date: 2001-01-31T05:08:21+00:00	[thread overview]
Message-ID: <95Nd6.343422$U46.10481049@news1.sttls1.wa.home.com> (raw)
In-Reply-To: 9570ko$fg1$1@nnrp1.deja.com

> Note that the detailed list in AARM C.6(20) of disallowed
> transformations has no hint at all of the "separate" part of
> Tuck's claim, and conspicuously does not list combining writes
> as an improper transformation.
>
> Tuck, having something in your mind is not good enough if you
> do not write it down :-)
>
> > In general, that means each read/update is a separate
> > instruction.
>
> No, there is absolutely NO implication of this
>

I find the difference in interpretation of AARM C.6(20) interesting.

This clause states:

  "... The implementation shall not generate any memory reads or updates of
atomic or volatile objects other than those specified by the program."

My interpretation of this statement is: if my program contains two separate
assigments to two distinct variables for which pragma atomic applies, these
assignments will be performed as two distinct operations.  Since the two
assignments appear as separate assignments in the code, if the performed
these assignments are combined as single operation, an update is being
performed that my program did not specify.

Since there is obviously some confusion over this issue perhaps the AARM
should be revised?

BTW: When I first started reading about Ada I didn't realize that there was
any confusion on this issue.  It is actually one of the specific features of
the language that made me think Ada is superior for interfacing with
hardware.

SteveD








  reply	other threads:[~2001-01-31  5:08 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-22 11:22 Help with Atomic_Components and whole array assignment r_c_chapman
2001-01-22 12:51 ` Stuart Palin
2001-01-22 14:16   ` mark_lundquist
2001-01-22 16:09     ` Pat Rogers
2001-01-22 16:29     ` Robert Dewar
2001-01-22 19:52       ` Mark Lundquist
2001-01-30 15:54       ` Tucker Taft
2001-01-30 18:20         ` Robert Dewar
2001-01-31  5:08           ` DuckE [this message]
2001-01-31  5:57             ` Robert Dewar
2001-02-01  3:31               ` DuckE
2001-02-02 21:38               ` Mark Lundquist
2001-02-02 23:08                 ` Robert Dewar
2001-02-03  1:39                 ` tmoran
2001-01-22 16:21 ` Robert Dewar
2001-01-22 16:39   ` r_c_chapman
2001-01-30 15:57     ` Tucker Taft
2001-01-30 18:26       ` Robert Dewar
2001-01-30 21:30         ` Simon Wright
2001-02-01  6:11           ` Robert Dewar
2001-02-06  0:32         ` Richard Kenner
2001-02-06  3:15           ` Robert Dewar
2001-01-31 10:09       ` Rod Chapman
2001-01-31 21:41         ` Tucker Taft
2001-02-01  5:33           ` Robert Dewar
2001-02-01  9:42           ` Rod Chapman
2001-02-01 18:10             ` Robert Dewar
2001-02-01 13:14           ` SPARK flow analysis (was Help with Atomic_Components and whole array assignment) Stuart Palin
2001-02-01 23:38           ` Help with Atomic_Components and whole array assignment Nick Roberts
2001-02-02  3:45             ` Robert Dewar
2001-02-07 21:40           ` Nick Williams
replies disabled

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