Date: Sat, 22 May 2021 11:25:06 -0400
On Sat, May 22, 2021 at 10:49 AM Philipp Klaus Krause via Liaison
<liaison_at_[hidden]> wrote:
>
> Am 22.05.21 um 16:08 schrieb Robert Seacord via Liaison:
> > I'm looking for reviews / comments for n2743 Volatile C++ Compatibility
> > before submission. If you are interested in reviewing, you can find a
> > PDF of the proposal here:
> >
> > http://robertseacord.com/wp/2021/05/22/volatile-c-compatibility/
> > <http://robertseacord.com/wp/2021/05/22/volatile-c-compatibility/>
> >
> > Thanks,
> > rCs
>
> People use compound operators, increment and decrement on memory-mapped
> I/O registers.
> The justification of basically 'compound operators are misleading, since
> they look as if there was only one memory access instead of a read
> followed by a write' seems very weak to me. Users of volatile tend to be
> working close to the hardware, knowing how the hardware works.
FWIW, my personal experience has been that this is a significant cause
of confusion even for people who are experienced working close to the
hardware.
> The remaining rationale apparently is just 'C++ removed the feature, so
> we should, too', which also seems a rather weak one to me.
Some of the deprecations touch on interfaces that would plausibly show
up in headers shared between C and C++ (specifically, volatile on
return types and on parameter types), so those particular cases are of
importance for compatibility between C and C++.
~Aaron
>
> Philipp
> _______________________________________________
> Liaison mailing list
> Liaison_at_[hidden]
> Subscription: https://lists.isocpp.org/mailman/listinfo.cgi/liaison
> Link to this post: http://lists.isocpp.org/liaison/2021/05/0583.php
<liaison_at_[hidden]> wrote:
>
> Am 22.05.21 um 16:08 schrieb Robert Seacord via Liaison:
> > I'm looking for reviews / comments for n2743 Volatile C++ Compatibility
> > before submission. If you are interested in reviewing, you can find a
> > PDF of the proposal here:
> >
> > http://robertseacord.com/wp/2021/05/22/volatile-c-compatibility/
> > <http://robertseacord.com/wp/2021/05/22/volatile-c-compatibility/>
> >
> > Thanks,
> > rCs
>
> People use compound operators, increment and decrement on memory-mapped
> I/O registers.
> The justification of basically 'compound operators are misleading, since
> they look as if there was only one memory access instead of a read
> followed by a write' seems very weak to me. Users of volatile tend to be
> working close to the hardware, knowing how the hardware works.
FWIW, my personal experience has been that this is a significant cause
of confusion even for people who are experienced working close to the
hardware.
> The remaining rationale apparently is just 'C++ removed the feature, so
> we should, too', which also seems a rather weak one to me.
Some of the deprecations touch on interfaces that would plausibly show
up in headers shared between C and C++ (specifically, volatile on
return types and on parameter types), so those particular cases are of
importance for compatibility between C and C++.
~Aaron
>
> Philipp
> _______________________________________________
> Liaison mailing list
> Liaison_at_[hidden]
> Subscription: https://lists.isocpp.org/mailman/listinfo.cgi/liaison
> Link to this post: http://lists.isocpp.org/liaison/2021/05/0583.php
Received on 2021-05-22 10:25:23