-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloWorld_ARM.s
More file actions
54 lines (54 loc) · 939 Bytes
/
Copy pathHelloWorld_ARM.s
File metadata and controls
54 lines (54 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.arch armv7-a
.eabi_attribute 28, 1
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 1
.eabi_attribute 18, 4
.file "HelloWorld.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Hello World\000"
.align 2
.LC1:
.ascii "Have a great day\000"
.text
.align 1
.global main
.arch armv7-a
.syntax unified
.thumb
.thumb_func
.fpu vfpv3-d16
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {r7, lr}
add r7, sp, #0
ldr r3, .L2
.LPIC0:
add r3, pc
mov r0, r3
bl puts(PLT)
ldr r3, .L2+4
.LPIC1:
add r3, pc
mov r0, r3
bl puts(PLT)
nop
pop {r7, pc}
.L3:
.align 2
.L2:
.word .LC0-(.LPIC0+4)
.word .LC1-(.LPIC1+4)
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0"
.section .note.GNU-stack,"",%progbits