回复 5楼 wp231957
好像不能发text文件,我把cpu数据给你看下,我看不懂
0401530 <+0>:
push
%rbp
0x0000000000401531 <+1>:
mov
%rsp,%rbp
0x0000000000401534 <+4>:
sub
$0x30,%rsp
0x0000000000401538 <+8>:
callq
0x402130 <__main>
0x000000000040153d <+13>:
lea
0x2abc(%rip),%rdx
# 0x404000
0x0000000000401544 <+20>:
lea
0x2abd(%rip),%rcx
# 0x404008
0x000000000040154b <+27>:
callq
0x402b48 <fopen>
0x0000000000401550 <+32>:
mov
%rax,-0x8(%rbp)
0x0000000000401554 <+36>:
mov
-0x8(%rbp),%rax
0x0000000000401558 <+40>:
mov
$0x2,%r8d
0x000000000040155e <+46>:
mov
$0x0,%edx
0x0000000000401563 <+51>:
mov
%rax,%rcx
0x0000000000401566 <+54>:
callq
0x402b50 <fseek>
0x000000000040156b <+59>:
mov
-0x8(%rbp),%rax
0x000000000040156f <+63>:
mov
%rax,%rcx
0x0000000000401572 <+66>:
callq
0x402b58 <ftell>
0x0000000000401577 <+71>:
mov
%eax,-0xc(%rbp)
0x000000000040157a <+74>:
mov
-0x8(%rbp),%rax
0x000000000040157e <+78>:
mov
%rax,%rcx
0x0000000000401581 <+81>:
callq
0x402b60 <fclose>
0x0000000000401586 <+86>:
mov
-0xc(%rbp),%eax
0x0000000000401589 <+89>:
mov
%eax,%edx
0x000000000040158b <+91>:
lea
0x2aa9(%rip),%rcx
# 0x40403b
0x0000000000401592 <+98>:
callq
0x402b68 <printf>
0x0000000000401597 <+103>:
mov
$0x0,%eax
=> 0x000000000040159c <+108>:
add
$0x30,%rsp
0x00000000004015a0 <+112>:
pop
%rbp
0x00000000004015a1 <+113>:
retq
不知道有没有用