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: Oberon and Wirthian languages Date: Wed, 23 Apr 2014 12:17:30 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <1ljwj8f.1wqbhvuabsdw1N%csampson@inetworld.net> <51c7d6d4-e3be-44d5-a4ce-f7e875345588@googlegroups.com> <%J32v.70539$kp1.45343@fx14.iad> <8761m535e4.fsf_-_@ludovic-brenta.org> Injection-Date: Wed, 23 Apr 2014 12:17:30 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="4203"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19A4JHoa6YcmdWKJayeLcAB+Z8Nq71MXuc=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:KQRKiCwjJ34WAAyZ4IRwQk8J0yc= Xref: news.eternal-september.org comp.lang.ada:19521 Date: 2014-04-23T12:17:30+00:00 List-Id: On 2014-04-22, Randy Brukardt wrote: > "Simon Clubley" wrote in > message news:lj4de1$jql$1@dont-email.me... >> >> Thank you. It was not at all 100% clear from the RM if Ada offered the >> _guarantee_ that if you had, say, 3 components in a record assignment >> for a atomic bitfield record, that the record assignment would be treated >> as one atomic operation instead of 3 atomic operations (one for each >> component). > > It's not quite a guarentee, as it's Implementation Advice (C.6(22-23/2). The > reason for it being IA is simply that we can't use undefined terms like > "load" and "store" in normative wording. In this case, IA is actually > stronger because we can say directly what we mean without defining it > exactly. In theory, implementations are supposed to document all cases where > they do not follow Implementation Advice, so you should be able to determine > for a particular implementation as to whether it is followed. > > I don't think there could be an absolute guarantee, as the idea of a load or > store might not make sense on a data-flow machine (or some other exotic > design). I would guess that implementers do this in virtually all cases. As > Jeff said, if it is really critical, you have a verify the code. > Ok, those are some interesting insights. Thanks, Randy. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world