54 lines
967 B
ArmAsm
54 lines
967 B
ArmAsm
|
.file "hello.c"
|
||
|
.text
|
||
|
.section .rodata
|
||
|
.LC0:
|
||
|
.string "./hello.c"
|
||
|
.LC1:
|
||
|
.string "argc == 2"
|
||
|
.LC2:
|
||
|
.string "\nhello %s\n\n"
|
||
|
.text
|
||
|
.globl main
|
||
|
.type main, @function
|
||
|
main:
|
||
|
.LFB6:
|
||
|
.cfi_startproc
|
||
|
pushq %rbp
|
||
|
.cfi_def_cfa_offset 16
|
||
|
.cfi_offset 6, -16
|
||
|
movq %rsp, %rbp
|
||
|
.cfi_def_cfa_register 6
|
||
|
subq $32, %rsp
|
||
|
movl %edi, -4(%rbp)
|
||
|
movq %rsi, -16(%rbp)
|
||
|
movq %rdx, -24(%rbp)
|
||
|
cmpl $2, -4(%rbp)
|
||
|
je .L2
|
||
|
leaq __PRETTY_FUNCTION__.2887(%rip), %rcx
|
||
|
movl $6, %edx
|
||
|
leaq .LC0(%rip), %rsi
|
||
|
leaq .LC1(%rip), %rdi
|
||
|
call __assert_fail@PLT
|
||
|
.L2:
|
||
|
movq -16(%rbp), %rax
|
||
|
addq $8, %rax
|
||
|
movq (%rax), %rax
|
||
|
movq %rax, %rsi
|
||
|
leaq .LC2(%rip), %rdi
|
||
|
movl $0, %eax
|
||
|
call printf@PLT
|
||
|
movl $0, %eax
|
||
|
leave
|
||
|
.cfi_def_cfa 7, 8
|
||
|
ret
|
||
|
.cfi_endproc
|
||
|
.LFE6:
|
||
|
.size main, .-main
|
||
|
.section .rodata
|
||
|
.type __PRETTY_FUNCTION__.2887, @object
|
||
|
.size __PRETTY_FUNCTION__.2887, 5
|
||
|
__PRETTY_FUNCTION__.2887:
|
||
|
.string "main"
|
||
|
.ident "GCC: (Debian 8.3.0-6) 8.3.0"
|
||
|
.section .note.GNU-stack,"",@progbits
|