Fun surprising things
rikki cattermole
rikki at cattermole.co.nz
Wed Oct 31 14:06:44 UTC 2018
There isn't really any reason for it to be like this.
Assembly:
.text._Dmain segment
assume CS:.text._Dmain
_Dmain:
push RBP
mov RBP,RSP
sub RSP,010h
call int onlineapp.b()@PLT32
mov RDI,RAX
call pure nothrow @safe immutable(char)[]
std.conv.to!(immutable(char)[]).to!(int).to(int)@PLT32
mov RCX,RAX
mov R8,RDX
mov -010h[RBP],RCX
mov -8[RBP],R8
call int onlineapp.a()@PLT32
mov RDI,RAX
call pure nothrow @safe immutable(char)[]
std.conv.to!(immutable(char)[]).to!(int).to(int)@PLT32
mov RSI,RAX
mov R8,-8[RBP]
mov RCX,-010h[RBP]
mov RDI,TypeInfo_Aya.__init at GOTPCREL[RIP]
call _d_arraycatT at PLT32
mov RDI,RAX
mov RSI,RDX
call @safe void
std.stdio.writeln!(immutable(char)[]).writeln(immutable(char)[])@PLT32
xor EAX,EAX
leave
ret
More information about the Digitalmars-d
mailing list