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: Thu, 10 Jul 2014 13:06:01 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <0e0b9ac2-e793-4cc5-8d8d-d3441ca28a58@googlegroups.com> <1j7b0m3yptffy$.1cztnkty8elrv$.dlg@40tude.net> Injection-Date: Thu, 10 Jul 2014 13:06:01 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="32480"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zKiVdCrXfCTjRDa+4qZtAUsbrEWZpTbo=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:eFsVfTz5R30jMql1gdHAdW9ANTo= Xref: news.eternal-september.org comp.lang.ada:20836 Date: 2014-07-10T13:06:01+00:00 List-Id: On 2014-07-10, Simon Wright wrote: > Simon Wright writes: > >> The x86_64 code accesses all 32 bits of V. If it is more efficient on >> arm to access the relevant bytes for the component assignments, I >> expect that's what would happen (as reported). > > Just tried this on Raspberry Pi (GCC 4.6.3): yes, it only accesses the > relevant bytes. Just to make sure: you mean it uses ldrb/strb instead of ldr/str in the generated code ? Thanks, Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world