-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e01bd09
commit 5d5f113
Showing
10 changed files
with
78 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
all: | ||
gcc ./simple/simple.s -o ./simple/simple -nostartfiles -static | ||
gcc ./simple/simple_thumb.s -o ./simple/simple_thumb -nostartfiles -static |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.arch armv7-a | ||
.fpu vfpv3-d16 | ||
.section .text.startup,"ax",%progbits | ||
.align 1 | ||
.global _start | ||
.global _exit | ||
.syntax unified | ||
_start: | ||
@ args = 0, pretend = 0, frame = 104 | ||
@ frame_needed = 0, uses_anonymous_args = 0 | ||
push {r4, lr} | ||
sub sp, sp, #4096 | ||
mov r3, sp | ||
movs r2, #0 | ||
.L2: | ||
strb r3, [sp, r2] | ||
adds r2, r2, #1 | ||
cmp r2, #4096 | ||
bne .L2 | ||
|
||
movs r0, #0 | ||
blx _exit |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.arch armv7-a | ||
.fpu vfpv3-d16 | ||
.section .text.startup,"ax",%progbits | ||
.align 1 | ||
.global _start | ||
.global _exit | ||
.syntax unified | ||
.thumb | ||
.thumb_func | ||
_start: | ||
@ args = 0, pretend = 0, frame = 104 | ||
@ frame_needed = 0, uses_anonymous_args = 0 | ||
push {r4, lr} | ||
sub sp, sp, #4096 | ||
mov r3, sp | ||
movs r2, #0 | ||
.L2: | ||
strb r3, [sp, r2] | ||
adds r2, r2, #1 | ||
cmp r2, #4096 | ||
bne .L2 | ||
|
||
movs r0, #0 | ||
blx _exit |