added test alloc with working purecap

This commit is contained in:
2025-04-07 17:10:55 +01:00
parent 4894364ddf
commit 8cf048b6b2
5 changed files with 465 additions and 10 deletions

View 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