mirror of
https://github.com/frida/tinycc
synced 2024-12-26 23:09:41 +03:00
c4427747e6
This provides a simple implementation of alloca for ARM (and enables the associated testcase). As tcc for ARM doesn't contain an assembler, we'll have to resort using gcc for compiling it.
12 lines
185 B
ArmAsm
12 lines
185 B
ArmAsm
.text
|
|
.align 2
|
|
.global alloca
|
|
.type alloca, %function
|
|
alloca:
|
|
rsb sp, r0, sp
|
|
bic sp, sp, #7
|
|
mov r0, sp
|
|
mov pc, lr
|
|
.size alloca, .-alloca
|
|
.section .note.GNU-stack,"",%progbits
|