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: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Forcing GNAT to use 32-bit load/store instructions on ARM? Date: Tue, 01 Jul 2014 10:28:38 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <0e0b9ac2-e793-4cc5-8d8d-d3441ca28a58@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 1 Jul 2014 17:28:40 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="ba346f17b503f6aa8ecbfd6d1e2a9f59"; logging-data="23479"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sht9mypGV1A2hfgRxTgn+NA9wjWuJnYY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:xVyTf8Y4Rzr6sfjGrSgsVWVrrIE= Xref: news.eternal-september.org comp.lang.ada:20669 Date: 2014-07-01T10:28:38-07:00 List-Id: On 07/01/2014 05:06 AM, Simon Clubley wrote: > > The issue here is that Pragma Atomic should have given him the guarantee > he needs. I think I agree with Holsti that the lack of reference to the other 30 bits results in the compiler concluding that it can satisfy the pragma with 8-bit loads and stores. > There is a place for specific assembly language insertions (for example, > on ARM when you need to access the CPSR register), but that should not > be required here. A machine-code insertion seems to be required to obtain the machine-code instructions he desires with the type definition he is using. Generally one wants to define the reserved fields so one can control what values they have, but if he doesn't want to do that, he'll probably need a machine-code insertion. -- Jeff Carter "C++ is like giving an AK-47 to a monk, shooting him full of crack and letting him loose in a mall and expecting him to balance your checking account 'when he has the time.'" Drew Olbrich 52