Mixin in Inline Assembly

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 10 05:13:17 PST 2017


On Tuesday, 10 January 2017 at 11:38:43 UTC, Guillaume Piolat 
wrote:
> On Tuesday, 10 January 2017 at 10:41:54 UTC, Basile B. wrote:
>>
>> don't forget to flag
>>
>> asm pure nothrow {}
>>
>> otherwise it's slow.
>
> Why?

It's an empirical observation. In september I tried to get why an 
inline asm function was slow. What happened was that I didn't 
mark the asm block as nothrow

https://forum.dlang.org/post/xznocpxtalpayvkrwxey@forum.dlang.org

I opened an issue asking the specifications to explain that 
clearly.




More information about the Digitalmars-d-learn mailing list