On 07/15/14 19:07, bearophile via Digitalmars-d wrote:
> Artur Skawina:
> 
>> You can already express
>> all the described volatile semantics in GDC's D dialect, in a
>> completely portable way and without using a single asm instruction.
> 
> What's GDC syntax?

Some examples: http://forum.dlang.org/post/[email protected]

It can all be wrapped in "saner" templates and structs (for mmapped
register banks etc). Johannes specifically didn't ask for mem barriers,
cpu barriers or atomicity, just for compiler optimization barriers --
these don't need 'volatile'.

artur

Reply via email to