repo.or.cz
/
tinycc
/
kirr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Import 409,410: ARM EABI by Daniel Glöckner
[tinycc/kirr.git]
/
alloca86.S
blob
c8f0c25260ac0202686b541d6d29a735f12671df
1
/* ---------------------------------------------- */
2
/* alloca86.S */
3
4
.globl _alloca
5
6
_alloca:
7
pop %edx
8
pop %eax
9
add $3,%eax
10
and $-4,%eax
11
jz p3
12
p1:
13
cmp $4096,%eax
14
jle p2
15
sub $4096,%esp
16
sub $4096,%eax
17
test %eax,(%esp)
18
jmp p1
19
p2:
20
sub %eax,%esp
21
mov %esp,%eax
22
p3:
23
push %edx
24
push %edx
25
ret
26
27
/* ---------------------------------------------- */