|  | 
 
 发表于 2022-10-2 23:56:31
|
显示全部楼层 
| 复制代码int main(void) {
    1119:       55                      pushq  %rbp
    111a:       48 89 e5                movq   %rsp,%rbp
    int *from = NULL;
    111d:       48 c7 45 f0 00 00 00    movq   $0x0,-0x10(%rbp)
    1124:       00
    int *to = NULL;
    1125:       48 c7 45 f8 00 00 00    movq   $0x0,-0x8(%rbp)
    112c:       00
    while((*to++ = *from++) != '\0');
    112d:       90                      nop
    112e:       48 8b 55 f0             movq   -0x10(%rbp),%rdx
    1132:       48 8d 42 04             leaq   0x4(%rdx),%rax
    1136:       48 89 45 f0             movq   %rax,-0x10(%rbp)
    113a:       48 8b 45 f8             movq   -0x8(%rbp),%rax
    113e:       48 8d 48 04             leaq   0x4(%rax),%rcx
    1142:       48 89 4d f8             movq   %rcx,-0x8(%rbp)
    1146:       8b 12                   movl   (%rdx),%edx
    1148:       89 10                   movl   %edx,(%rax)
    114a:       8b 00                   movl   (%rax),%eax
    114c:       85 c0                   testl  %eax,%eax
    114e:       75 de                   jne    112e <main+0x15>
    return 0;
    1150:       b8 00 00 00 00          movl   $0x0,%eax
}
    1155:       5d                      popq   %rbp
    1156:       c3                      retq
 | 
 |