How can I add attributes to __asm statement?

drug drug2004 at bk.ru
Tue Nov 12 16:33:28 UTC 2019


In gdc I can use the following:
```
asm @nogc @safe nothrow pure {
	...
}
```
but it doesn't work in case of ldc2. I can use a lambda:
```
() @nogc @trusted nothrow pure {
	__asm (...)
}
```
but the lambda is inlined only in release mode. Additional stack frame 
or using only release mode is not convenient in my case. Is there 
another way to add attributes to __asm statement?


More information about the digitalmars-d-ldc mailing list