Commit c153f186 authored by Mart Lubbers's avatar Mart Lubbers
Browse files

Merge branch 'linux-arm64-graphcopy-support' into 'master'

Add support for linux arm64 to graphcopy

See merge request !14
parents 8948cc38 9415f25a
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_0
.text
.globl __copy__graph__to__string
__copy__graph__to__string:
str x8,[x26],#8
__copy__graph__to__string_0:
mov x29,x30
add x2,x27,x25,lsl #3
mov x1,x27
mov x0,x8
bl copy_graph_to_string
str x0,[x28,#-8]!
add x1,x27,x25,lsl #3
ldr x0,[x26,#-8]
bl remove_forwarding_pointers_from_graph
ldr x9,[x28],#8
cmp x9,#0
bne __copy__graph__to__string_1
add x6,x25,#1
sub x25,x25,x6
str x29,[x28,#-8]!
bl collect_0
add x25,x25,x6
ldr x8,[x26,#-8]
b __copy__graph__to__string_0
__copy__graph__to__string_1:
ldr x6,[x9,#8]
sub x26,x26,#8
mov x8,x9
add x6,x6,#16+7
and x5,x6,#-8
add x27,x27,x5
sub x25,x25,x6,lsr #3
ldr x30,[x28],#8
ret x29
.globl copy_string_to_graph
.globl remove_forwarding_pointers_from_string
.globl collect_0
.text
.globl __copy__string__to__graph
__copy__string__to__graph:
str x8,[x26],#8
__copy__string__to__graph_0:
mov x29,x30
sub x28,x28,#8
mov x3,x28
add x2,x27,x25,lsl #3
mov x1,x27
mov x0,x8
bl copy_string_to_graph
tst x0,#1
beq __copy__string__to__graph_1
and x1,x0,#-8
ldr x0,[x26,#-8]
bl remove_forwarding_pointers_from_string
ldr x9,[x28],#8
sub x6,x9,x27
lsr x6,x6,#3
sub x25,x25,x6
str x29,[x28,#-8]!
bl collect_0
add x25,x25,x6
ldr x8,[x26,#-8]
b __copy__string__to__graph_0
__copy__string__to__graph_1:
ldr x16,[x28],#8
sub x26,x26,#8
mov x8,x0
sub x6,x16,x27
mov x27,x16
sub x25,x25,x6,lsr #3
ldr x30,[x28],#8
ret x29
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