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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Forcing GNAT to use 32-bit load/store instructions on ARM? Date: Tue, 1 Jul 2014 21:20:00 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <0e0b9ac2-e793-4cc5-8d8d-d3441ca28a58@googlegroups.com> Injection-Date: Tue, 1 Jul 2014 21:20:00 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="4195"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eddQqIyJq9/qC019tr15ZWRuEqcqrc98=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:iKIxkA4MBXj0S0mZsbTxsyjjQh0= Xref: news.eternal-september.org comp.lang.ada:20677 Date: 2014-07-01T21:20:00+00:00 List-Id: On 2014-07-01, Niklas Holsti wrote: > On 14-07-01 23:40 , Simon Clubley wrote: >> On 2014-07-01, daniel.dmk@googlemail.com wrote: >>> So could there be a problem with GNAT's Atomic on ARM? >>> >> >> Yes, big time. > > No. The Atomic guarantee only applies to read/write of the whole record. > My earlier post in this thread was in error. > That's interesting, and depressing, as it reduces the usefulness of Atomic hugely. When c.l.a talked a few weeks ago about syntax for the atomic update of multiple bitfields at the same time, I had thought the general view was that Atomic on a record resulted in register updates in units of the record size when updating a single bitfield, but that's clearly not the case as you have just pointed out. I think this whole area of the atomic updating of multiple bitfields is something which needs work in Ada especially now the above revelation means Ada is even weaker in this specific area than I thought it was. Thanks for the interesting (if depressing :-)) insight. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world