30 lines
534 B
ArmAsm
30 lines
534 B
ArmAsm
|
.file "main.c"
|
||
|
.text
|
||
|
.def __main; .scl 2; .type 32; .endef
|
||
|
.section .rdata,"dr"
|
||
|
.LC0:
|
||
|
.ascii "Hello world!\0"
|
||
|
.text
|
||
|
.globl main
|
||
|
.def main; .scl 2; .type 32; .endef
|
||
|
.seh_proc main
|
||
|
main:
|
||
|
pushq %rbp
|
||
|
.seh_pushreg %rbp
|
||
|
movq %rsp, %rbp
|
||
|
.seh_setframe %rbp, 0
|
||
|
subq $32, %rsp
|
||
|
.seh_stackalloc 32
|
||
|
.seh_endprologue
|
||
|
call __main
|
||
|
leaq .LC0(%rip), %rax
|
||
|
movq %rax, %rcx
|
||
|
call puts
|
||
|
movl $0, %eax
|
||
|
addq $32, %rsp
|
||
|
popq %rbp
|
||
|
ret
|
||
|
.seh_endproc
|
||
|
.ident "GCC: (Rev2, Built by MSYS2 project) 13.2.0"
|
||
|
.def puts; .scl 2; .type 32; .endef
|