48 lines
691 B
ArmAsm
48 lines
691 B
ArmAsm
![]() |
.file "test.c"
|
||
|
.text
|
||
|
.globl main
|
||
|
.type main, @function
|
||
|
main:
|
||
|
.LFB0:
|
||
|
.cfi_startproc
|
||
|
endbr64
|
||
|
pushq %rbp
|
||
|
.cfi_def_cfa_offset 16
|
||
|
.cfi_offset 6, -16
|
||
|
movq %rsp, %rbp
|
||
|
.cfi_def_cfa_register 6
|
||
|
movl $0, -8(%rbp)
|
||
|
movl $0, -4(%rbp)
|
||
|
jmp .L2
|
||
|
.L3:
|
||
|
addl $1, -8(%rbp)
|
||
|
addl $1, -4(%rbp)
|
||
|
.L2:
|
||
|
cmpl $100000000, -4(%rbp)
|
||
|
jne .L3
|
||
|
movl -8(%rbp), %eax
|
||
|
popq %rbp
|
||
|
.cfi_def_cfa 7, 8
|
||
|
ret
|
||
|
.cfi_endproc
|
||
|
.LFE0:
|
||
|
.size main, .-main
|
||
|
.ident "GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
|
||
|
.section .note.GNU-stack,"",@progbits
|
||
|
.section .note.gnu.property,"a"
|
||
|
.align 8
|
||
|
.long 1f - 0f
|
||
|
.long 4f - 1f
|
||
|
.long 5
|
||
|
0:
|
||
|
.string "GNU"
|
||
|
1:
|
||
|
.align 8
|
||
|
.long 0xc0000002
|
||
|
.long 3f - 2f
|
||
|
2:
|
||
|
.long 0x3
|
||
|
3:
|
||
|
.align 8
|
||
|
4:
|