www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - What is equivalent of gcc `__volatile__` attribute?

reply drug <drug2004 bk.ru> writes:
What is the equivalent of __volatile__ in
```
__asm__ __volatile__ ( ... );
```
Nov 12 2019
parent kinke <noone nowhere.com> writes:
On Tuesday, 12 November 2019 at 16:55:02 UTC, drug wrote:
 What is the equivalent of __volatile__ in
 ```
 __asm__ __volatile__ ( ... );
 ```
I guess that's the `sideeffect` IR attribute (http://llvm.org/docs/LangRef.html#inline-assembler-expressions), which LDC currently always emits for __asm.
Nov 12 2019