Commit a201bf02 authored by Mart Lubbers's avatar Mart Lubbers Committed by Mart Lubbers
Browse files

Add support for linux arm64 to graphcopy

parent 8948cc38
all: copy_graph_to_string.o copy_graph_to_string_interface.o copy_string_to_graph.o copy_string_to_graph_interface.o
copy_graph_to_string.o: copy_graph_to_string.c copy_graph_to_string_implementation.c remove_forwarding_pointers_from_graph_implementation.c
gcc -S -O -DLINUX64 -DNO_PROFILE_GRAPH copy_graph_to_string.c -o copy_graph_to_string.a
sed -f s2.sed copy_graph_to_string.a > copy_graph_to_string.s
as copy_graph_to_string.s -o copy_graph_to_string.o
cp copy_graph_to_string.o "Clean System Files"/copy_graph_to_string.o
copy_graph_to_string_interface.o: copy_graph_to_string_interface_linux_arm64.s
as copy_graph_to_string_interface_linux_arm64.s -o copy_graph_to_string_interface.o
cp copy_graph_to_string_interface.o "Clean System Files"/copy_graph_to_string_interface.o
copy_string_to_graph.o: copy_string_to_graph.c copy_string_to_graph_implementation.c
gcc -S -O -DLINUX64 -DNO_PROFILE_GRAPH copy_string_to_graph.c -o copy_string_to_graph.a
sed -f s2.sed copy_string_to_graph.a > copy_string_to_graph.s
as copy_string_to_graph.s -o copy_string_to_graph.o
cp copy_string_to_graph.o "Clean System Files"/copy_string_to_graph.o
copy_string_to_graph_interface.o: copy_string_to_graph_interface_linux_arm64.s
as copy_string_to_graph_interface_linux_arm64.s -o copy_string_to_graph_interface.o
cp copy_string_to_graph_interface.o "Clean System Files"/copy_string_to_graph_interface.o
.globl copy_graph_to_string
.globl remove_forwarding_pointers_from_graph
.globl collect_1
.text
.globl __copy__graph__to__string
__copy__graph__to__string:
add x4,x27,x25,lsl #3
mov x3,x27
mov x2,x8
mov x17,sp
#mov sp,#8
bic sp,x17,#8
bl copy_graph_to_string
mov sp,x17
str x2,[sp,#-8]!
add x3,x27,x25,lsl #3
mov x2,x8
mov x17,sp
#mov sp,#8
#bic sp,x17,sp
bic sp,x17,#8
bl remove_forwarding_pointers_from_graph
mov sp,x17
ldr x9,[sp],#8
cmp x9,#0
bne __copy__graph__to__string_1
add x6,x25,#1
sub x25,x25,x6
bl collect_1
add x25,x25,x6
b __copy__graph__to__string
__copy__graph__to__string_1:
ldr x6,[x9,#8]
mov x8,x9
add x6,x6,#8+3
and x5,x6,#-8
add x27,x27,x5
sub x25,x25,x6,lsr #3
ldr x16,[sp],#8
br x16
.globl collect_1
.globl copy_string_to_graph
.globl remove_forwarding_pointers_from_string
.text
.globl __copy__string__to__graph
__copy__string__to__graph:
sub sp,sp,#8
mov x5,sp
add x4,x27,x25,lsl #3
mov x3,x27
mov x2,x8
mov x17,sp
bic sp,x17,#8
bl copy_string_to_graph
mov sp,x17
tst x2,#1
beq __copy__string__to__graph_1
ldr x9,[sp],#8
and x3,x2,#-8
mov x2,x8
mov x17,sp
bic sp,x17,#8
bl remove_forwarding_pointers_from_string
mov sp,x17
sub x6,x9,x27
sub x25,x25,x6
bl collect_1
add x25,x25,x6
b __copy__string__to__graph
__copy__string__to__graph_1:
ldr x16,[sp],#8
mov x8,x2
sub x6,x16,x27
mov x27,x16
sub x25,x25,x6,lsr #3
ldr x16,[sp],#8
br x16
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment