-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbld
More file actions
executable file
·18 lines (13 loc) · 719 Bytes
/
bld
File metadata and controls
executable file
·18 lines (13 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#CFLAGS='-Wall -O0 -g -fsanitize=address -fno-omit-frame-pointer -fsanitize-recover=address -std=c99'
#CFLAGS='-g -std=c99'
CFLAGS='-O3 -std=c99'
#CFLAGS='-O3'
#gcc -D_GNU_SOURCE probe.c -o probe -luring ${CFLAGS}
gcc -D_GNU_SOURCE -c hashtable.c -o hashtable.o -luring ${CFLAGS}
gcc -D_GNU_SOURCE -c blocks.c -o blocks.o -luring ${CFLAGS}
gcc -D_GNU_SOURCE mrcache.c net.c -o mrcache hashtable.o blocks.o -luring -lzstd ${CFLAGS}
#gcc mrcache.o hashtable.o blocks.o -lmrloop -luring -lzstd -o mrcache ${CFLAGS}
rm *.o
# For xxhash with xxhash.h
#gcc -c mrcache.c -o mrcache.o ${CFLAGS} -DXXH_INLINE_ALL
# ASAN_OPTIONS=halt_on_error=0 LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/7/libasan.so ./mrcache -m 20 -i 16