Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "test.bc"
- .text
- .globl factorial
- .align 16, 0x90
- .type factorial,@function
- factorial: # @factorial
- .cfi_startproc
- # BB#0:
- mov EAX, 1
- test EDI, EDI
- je .LBB0_2
- .align 16, 0x90
- .LBB0_1: # %tailrecurse
- # =>This Inner Loop Header: Depth=1
- imul EAX, EDI
- dec EDI
- jne .LBB0_1
- .LBB0_2: # %tailrecurse._crit_edge
- ret
- .Ltmp0:
- .size factorial, .Ltmp0-factorial
- .cfi_endproc
- .globl main
- .align 16, 0x90
- .type main,@function
- main: # @main
- .cfi_startproc
- # BB#0:
- push RAX
- .Ltmp2:
- .cfi_def_cfa_offset 16
- mov EDI, str
- call puts
- xor EAX, EAX
- pop RDX
- ret
- .Ltmp3:
- .size main, .Ltmp3-main
- .cfi_endproc
- .type str,@object # @str
- .section .rodata,"a",@progbits
- str:
- .asciz "asdf"
- .size str, 5
- .section ".note.GNU-stack","",@progbits
Add Comment
Please, Sign In to add comment