程序代码:
0x00000000004004fc <main+0>: push rbp
0x00000000004004fd <main+1>: mov rbp,rsp
0x0000000000400500 <main+4>: sub rsp,0x20
0x0000000000400504 <main+8>: mov DWORD PTR [rbp-0x4],0x3
0x000000000040050b <main+15>: mov DWORD PTR [rbp-0x8],0x2
0x0000000000400512 <main+22>: movabs rax,0x4022000000000000
0x000000000040051c <main+32>: mov QWORD PTR [rbp-0x10],rax
0x0000000000400520 <main+36>: mov eax,DWORD PTR [rbp-0x8]
0x0000000000400523 <main+39>: add eax,0x1
0x0000000000400526 <main+42>: mov ecx,eax
0x0000000000400528 <main+44>: imul ecx,DWORD PTR [rbp-0x4]
0x000000000040052c <main+48>: mov eax,DWORD PTR [rbp-0x8]
0x000000000040052f <main+51>: mov edx,eax
0x0000000000400531 <main+53>: sar edx,0x1f
0x0000000000400534 <main+56>: idiv DWORD PTR [rbp-0x4]
0x0000000000400537 <main+59>: lea edx,[rcx+rax*1]
0x000000000040053a <main+62>: mov eax,DWORD PTR [rbp-0x8]
0x000000000040053d <main+65>: imul eax,DWORD PTR [rbp-0x4]
0x0000000000400541 <main+69>: add edx,eax
0x0000000000400543 <main+71>: mov eax,DWORD PTR [rbp-0x8]
0x0000000000400546 <main+74>: add eax,edx
0x0000000000400548 <main+76>: cvtsi2sd xmm0,eax
0x000000000040054c <main+80>: movsd xmm1,QWORD PTR [rbp-0x10]
0x0000000000400551 <main+85>: movapd xmm2,xmm1
0x0000000000400555 <main+89>: divsd xmm2,xmm0
0x0000000000400559 <main+93>: movapd xmm0,xmm2
0x000000000040055d <main+97>: movsd QWORD PTR [rbp-0x10],xmm0
0x0000000000400562 <main+102>: mov rax,QWORD PTR [rbp-0x10]
0x0000000000400566 <main+106>: mov QWORD PTR [rbp-0x18],rax
0x000000000040056a <main+110>: movsd xmm0,QWORD PTR [rbp-0x18]
0x000000000040056f <main+115>: mov edi,0x400634
0x0000000000400574 <main+120>: mov eax,0x1
0x0000000000400579 <main+125>: call 0x4003e0 <printf@plt>
0x000000000040057e <main+130>: mov eax,0x0
0x0000000000400583 <main+135>: leave
0x0000000000400584 <main+136>: ret
好优雅啊 可惜windows因为兼容性问题还是得用32位的。。。