Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "test01.c"
- .intel_syntax noprefix
- .text
- .p2align 4,,15
- .globl func01
- .type func01, @function
- func01:
- .LFB24:
- .cfi_startproc
- add edi, esi
- add edx, edi
- add ecx, edx
- add ecx, r8d
- lea eax, [rcx+r9]
- ret
- .cfi_endproc
- .LFE24:
- .size func01, .-func01
- .section .rodata.str1.1,"aMS",@progbits,1
- .LC0:
- .string "result = %d\n"
- .section .text.startup,"ax",@progbits
- .p2align 4,,15
- .globl main
- .type main, @function
- main:
- .LFB23:
- .cfi_startproc
- sub rsp, 8
- .cfi_def_cfa_offset 16
- mov r9d, 6
- mov r8d, 5
- mov ecx, 4
- mov edx, 3
- mov esi, 2
- mov edi, 1
- xor eax, eax
- call func01
- lea rsi, .LC0[rip]
- mov edx, eax
- mov edi, 1
- xor eax, eax
- call __printf_chk@PLT
- xor eax, eax
- add rsp, 8
- .cfi_def_cfa_offset 8
- ret
- .cfi_endproc
- .LFE23:
- .size main, .-main
- .ident "GCC: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement