From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cbd507df3efa824b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-30 07:57:11 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsxfer.eecs.umich.edu!news.bu.edu!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: Help with Atomic_Components and whole array assignment Date: Tue, 30 Jan 2001 10:57:10 -0500 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3A76E455.AABF2490@averstar.com> References: <94h55t$9a1$1@nnrp1.deja.com> <94hml1$o64$1@nnrp1.deja.com> <94hno6$p8s$1@nnrp1.deja.com> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 980870230 21987 141.199.8.77 (30 Jan 2001 15:57:10 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 30 Jan 2001 15:57:10 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:4708 Date: 2001-01-30T15:57:10+00:00 List-Id: r_c_chapman@my-deja.com wrote: > > In article <94hml1$o64$1@nnrp1.deja.com>, > Robert Dewar wrote: > > pragma Atomic merely says that two tasks cannot intefere with > > one another... > > Ah..got it..of course, from the point of view of another Ada task, > the writes can be combined. This means I've mis-understood Atomic > for at least the last 4 years... :-( I don't agree with Robert on this. Have you tried writing it as a loop rather than an aggregate assignment. I suspect that all Ada compilers would use separate assignments, including GNAT. In any case, I believe they should use separate assignments. > > Package Machine_Code here we come... This is not necessarily the right conclusion in my view. Most device drivers are written without dropping into machine code these days. Ada of all languages should not change that. > - Rod -- -Tucker Taft stt@avercom.net http://www.averstar.com/~stt/ Chief Technology Officer, AverCom, Inc. (A Titan Company) Burlington, MA USA (AverCom was formed 1/1/01 from the Commercial Division of AverStar) (http://www.averstar.com/services/ebusiness_applications.html)