Skip to content

Instantly share code, notes, and snippets.

@jpf91
Created March 1, 2013 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpf91/5064764 to your computer and use it in GitHub Desktop.
Save jpf91/5064764 to your computer and use it in GitHub Desktop.
Dump of assembler code for function _Dmain:
0x0805c35c <+0>: push %ebp
0x0805c35d <+1>: mov %esp,%ebp
0x0805c35f <+3>: sub $0x8,%esp
0x0805c362 <+6>: mov 0x806f65c,%eax ;d = Date()
0x0805c367 <+11>: mov %eax,-0x8(%ebp) ;
0x0805c36a <+14>: lea -0x8(%ebp),%ecx ;ecx = &d
0x0805c36d <+17>: push %ecx
0x0805c36e <+18>: lea -0x4(%ebp),%eax ;eax = &copy
0x0805c371 <+21>: call 0x805c2dc <_D1e4Date8__cpctorMxFKxS1e4DateZv> ;copy = d, __postblit(copy)
0x0805c376 <+26>: mov -0x4(%ebp),%eax ;eax = copy !!!
0x0805c379 <+29>: call 0x805c330 <_D1e7setDateFS1e4DateZv> ;copy passed in register eax!
0x0805c37e <+34>: xor %eax,%eax
0x0805c380 <+36>: leave
0x0805c381 <+37>: ret
End of assembler dump.
Dump of assembler code for function _D1e7setDateFS1e4DateZv:
0x0805c330 <+0>: push %ebp
0x0805c331 <+1>: mov %esp,%ebp
0x0805c333 <+3>: sub $0x8,%esp
0x0805c336 <+6>: mov %eax,-0x4(%ebp) ;copy moved back from register to stack
0x0805c339 <+9>: lea -0x4(%ebp),%ecx
0x0805c33c <+12>: push %ecx
0x0805c33d <+13>: lea -0x8(%ebp),%eax
0x0805c340 <+16>: call 0x805c2dc <_D1e4Date8__cpctorMxFKxS1e4DateZv>
0x0805c345 <+21>: mov -0x8(%ebp),%edx
0x0805c348 <+24>: push %edx
0x0805c349 <+25>: mov %gs:0x0,%eax
0x0805c34f <+31>: add 0x80737c0,%eax
0x0805c355 <+37>: call 0x805c2f4 <_D1e4Date8opAssignMFNcS1e4DateZS1e4Date>
0x0805c35a <+42>: leave
0x0805c35b <+43>: ret
End of assembler dump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment