DMD generates calls to next operation

Jeroen Bollen via Digitalmars-d digitalmars-d at puremagic.com
Tue May 20 12:58:59 PDT 2014


On Tuesday, 20 May 2014 at 19:55:17 UTC, Artur Skawina via
Digitalmars-d wrote:
> On 05/20/14 21:46, Jeroen Bollen via Digitalmars-d wrote:
>> While inspecting assembly code generated by DMD I found this
>> weird bit of assembly:
>
>>    19:    e8 00 00 00 00           call   1e <_Dmain+0x1e>
>>    1e:    31 c0                    xor    eax,eax
>>    20:    c9                       leave
>>    21:    c3                       ret
>>    22:    66 0f 1f 44 00 00        nop    WORD PTR 
>> [rax+rax*1+0x0]
>> 
>> It seems to call/jump to the operation right after it. Why does
>> it do that?
>
> http://forum.dlang.org/post/mailman.427.1364814654.4724.digitalmars-d-learn@puremagic.com
>
> artur
Thanks :P


More information about the Digitalmars-d mailing list