- 论坛徽章:
- 0
|
附64位GCC环境下的汇编代码,麻烦各位高手帮分析下。- .file "rtn.c"
- .section .rodata
- .LC0:
- .string "ok"
- .text
- .globl main
- .type main, @function
- main:
- .LFB5:
- pushq %rbp
- .LCFI0:
- movq %rsp, %rbp
- .LCFI1:
- subq $16, %rsp
- .LCFI2:
- movl $2147483647, -4(%rbp)
- cmpl $-1, -4(%rbp)
- jge .L2
- movl $.LC0, %edi
- call puts
- .L2:
- movl $0, %eax
- leave
- ret
- .LFE5:
- .size main, .-main
- .section .eh_frame,"a",@progbits
- .Lframe1:
- .long .LECIE1-.LSCIE1
- .LSCIE1:
- .long 0x0
- .byte 0x1
- .string "zR"
- .uleb128 0x1
- .sleb128 -8
- .byte 0x10
- .uleb128 0x1
- .byte 0x3
- .byte 0xc
- .uleb128 0x7
- .uleb128 0x8
- .byte 0x90
- .uleb128 0x1
- .align 8
- .LECIE1:
- .LSFDE1:
- .long .LEFDE1-.LASFDE1
- .LASFDE1:
- .long .LASFDE1-.Lframe1
- .long .LFB5
- .long .LFE5-.LFB5
- .uleb128 0x0
- .byte 0x4
- .long .LCFI0-.LFB5
- .byte 0xe
- .uleb128 0x10
- .byte 0x86
- .uleb128 0x2
- .byte 0x4
- .long .LCFI1-.LCFI0
- .byte 0xd
- .uleb128 0x6
- .align 8
- .LEFDE1:
- .ident "GCC: (GNU) 4.1.2 20071124 (Red Hat 4.1.2-42)"
- .section .note.GNU-stack,"",@progbits
复制代码 |
|