added test alloc with working purecap
This commit is contained in:
7
allocator/testallocator/build.sh
Normal file
7
allocator/testallocator/build.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
# build glibc
|
||||
cc -g -Wall -o glibc-bench.out -march=morello -mabi=purecap -Xclang -morello-vararg=new -lpthread glibc.c
|
||||
|
||||
# build shared object library
|
||||
cc -O3 -g -W -Wall -shared -o ./malloc.so -mabi=purecap -Wno-unused-parameter -lpthread -fPIC alloc.c
|
||||
|
||||
LD_PRELOAD=malloc.so ./glibc-bench.out
|
||||
Reference in New Issue
Block a user