[Info-vax] C et al (was: Re: Rust as a HS language, was: Re: Quiet?)

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Mon Apr 11 13:56:13 EDT 2022


On 2022-04-11, Stephen Hoffman <seaohveh at hoffmanlabs.invalid> wrote:
> On 2022-04-11 13:14:39 +0000, Simon Clubley said:
>
>> On 2022-04-10, Stephen Hoffman <seaohveh at hoffmanlabs.invalid> wrote:
>>> On 2022-04-10 02:29:53 +0000, Stephen Hoffman said:
>>> 
>>>> My usual pointer to just what volatile provides, and doesn't provide:
>>>> 
>>>> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1152r0.html
>>> 
>>> For those that believe there is but one write with volatile, there's 
>>> one write per byte yes, but there can be multiple and arbitrary-ordered 
>>> writes involved within that operation.
>>> 
>> 
>> Any compiler doing anything as brain-dead as that would instantly be 
>> dropped and if it was an open-source compiler, would instantly be 
>> forked, XFree86 style, and the brain-dead additions removed.
>
> That's unclear, as there can be differences between the C abstract 
> machine and the physical machine?such as around unaligned memory 
> access. q.v. Alpha.
>

Ok. I'll modify my statement to call the compiler brain-dead if the
hardware can support addresses being accessed in the correct way, but
the compiler chooses to follow the above rules instead.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.



More information about the Info-vax mailing list