Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
run-time-system
Commits
b36fa58b
Commit
b36fa58b
authored
Feb 19, 2021
by
John van Groningen
Browse files
add ludivide function on thumb
parent
074e6cad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile.linux_thumb
View file @
b36fa58b
...
...
@@ -6,8 +6,8 @@ DEFINES = -DUSE_CLIB -DLINUX -DARM -DGNU_C -DELF
all
:
$(ODIR)_startup.o
$(ODIR)_startup.o
:
$(ODIR)tstartup.o $(ODIR)tfileIO3.o $(ODIR)scon.o $(ODIR)ufileIO2.o $(ODIR)tdivmod.o $(ODIR)tudiv.o
ld
-r
-o
$(ODIR)
_startup.o
$(ODIR)
tstartup.o
$(ODIR)
tdivmod.o
$(ODIR)
tudiv.o
$(ODIR)
scon.o
$(ODIR)
tfileIO3.o
$(ODIR)
ufileIO2.o
$(ODIR)_startup.o
:
$(ODIR)tstartup.o $(ODIR)tfileIO3.o $(ODIR)scon.o $(ODIR)ufileIO2.o $(ODIR)tdivmod.o $(ODIR)tudiv.o
$(ODIR)tludiv.o
ld
-r
-o
$(ODIR)
_startup.o
$(ODIR)
tstartup.o
$(ODIR)
tdivmod.o
$(ODIR)
tudiv.o
$(ODIR)
tludiv.o
$(ODIR)
scon.o
$(ODIR)
tfileIO3.o
$(ODIR)
ufileIO2.o
$(ODIR)scon.o
:
$(SDIR)scon.c
gcc
-mthumb
-O
$(DEFINES)
-ffunction-sections
-fdata-sections
$(SDIR)
scon.c
-S
-o
$(ODIR)
scon.s
...
...
@@ -30,4 +30,7 @@ $(ODIR)tdivmod.o: $(SDIR)tdivmod.s
$(ODIR)tudiv.o
:
$(SDIR)tudiv.s
as
$(ODIR)
tudiv.s
-o
$(ODIR)
tudiv.o
$(ODIR)tludiv.o
:
$(SDIR)tludiv.s
as
$(ODIR)
tludiv.s
-o
$(ODIR)
tludiv.o
tludiv.s
0 → 100644
View file @
b36fa58b
.
arch
armv7
-
a
.
syntax
unified
.
thumb
.
fpu
vfpv3
-
d16
.
text
.
global
ludivide
ludivide
:
adds
r0
,
r0
,
r0
adcs
r2
,
r10
,
r10
it
cc
cmpcc
r2
,
r1
it
cs
subcs
r2
,
r2
,
r1
.
rept
31
adcs
r0
,
r0
,
r0
adcs
r2
,
r2
,
r2
it
cc
cmpcc
r2
,
r1
it
cs
subcs
r2
,
r2
,
r1
.
endr
adc
r1
,
r0
,
r0
mov
r0
,
r2
ldr
pc
,[
sp
],#
4
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment