Mixin in Inline Assembly

Guillaume Piolat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 10 05:19:01 PST 2017


On Tuesday, 10 January 2017 at 13:13:17 UTC, Basile B. wrote:
> 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.

Interesting, thanks.


More information about the Digitalmars-d-learn mailing list