PracticeDev/study_clang/gcc/hello.s

35 lines
625 B
ArmAsm

.file "hello.c"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $80, %rsp
movabsq $6278066737626506568, %rax
movq %rax, -80(%rbp)
movabsq $143418749551, %rax
movq %rax, -72(%rbp)
leaq -64(%rbp), %rsi
movl $0, %eax
movl $8, %edx
movq %rsi, %rdi
movq %rdx, %rcx
rep stosq
leaq -80(%rbp), %rax
movq %rax, %rdi
call puts
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (GNU) 4.8.5 20150623 (Red Hat 4.8.5-39)"
.section .note.GNU-stack,"",@progbits