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: border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.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: Thu, 10 Jul 2014 00:11:11 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <0e0b9ac2-e793-4cc5-8d8d-d3441ca28a58@googlegroups.com> <1j7b0m3yptffy$.1cztnkty8elrv$.dlg@40tude.net> <1l6z27vulrv65.1xwdi0b9yactc$.dlg@40tude.net> Injection-Date: Thu, 10 Jul 2014 00:11:11 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="15349"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tQdElA0ZUUBZEPoLY7RIY/U37Xpfl+VY=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:/BjzwRPohz/uKFp8Gofk+j+1684= Xref: number.nntp.dca.giganews.com comp.lang.ada:187481 Date: 2014-07-10T00:11:11+00:00 List-Id: On 2014-07-09, Dmitry A. Kazakov wrote: > On Tue, 8 Jul 2014 15:34:04 -0500, Randy Brukardt wrote: > >> To make >> "Read-Modify-Write" indivisible, you'd need a test-and-set instruction, >> which would require far more restrictions than Atomic does. (I don't see any >> way to make a general Read-Modify-Write to be indivisible on Windows or >> Linux, for instance, as that requires shutting off interrupts.) > > I don't think this should be the semantics of "indivisible". Because as you > said it incredibly difficult to ensure, but more importantly is that this > is mot what programmers actually need. They need it rather be logically > indivisible from the process' point of view. If the process could lose the > processor in between would be no problem for most if not all applications. > Oh, I agree with this. :-) I was just wondering if a newcomer to Ada might be confused by the use of the word Atomic. BTW, I'm planning on writing up the partial aggregate submission sometime at the weekend (spare time permitting :-)). I'm also planning on a second submission which is a request for a formal decision regarding if Atomic on a record applies to the access of a individual record component or not. The wording identified by Niklas ("as a whole") would suggest not but Randy appears to think it does. I think we need a firm decision one way or another so we know for sure. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world