From 4c0830ffbc045290c167e482855cb25a639df0e0 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 9 Feb 2019 12:45:38 +0100 Subject: add allocators build support and two allocator definitions The allocators created by the file allocators/BA_allocators.py are those used in my BA thesis available at: https://muhq.space/ba.html. allocators/no_falsesharing.py builds patched versions of tcmalloc and glibc without any allocator inroduced falsesharing. --- allocators/hoard_make.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 allocators/hoard_make.patch (limited to 'allocators/hoard_make.patch') diff --git a/allocators/hoard_make.patch b/allocators/hoard_make.patch new file mode 100644 index 0000000..4848c57 --- /dev/null +++ b/allocators/hoard_make.patch @@ -0,0 +1,16 @@ +diff --git a/src/GNUmakefile b/src/GNUmakefile +index 2b2958e..7fa433a 100644 +--- a/src/GNUmakefile ++++ b/src/GNUmakefile +@@ -1,9 +1,9 @@ + # Commands to compile Hoard for various targets. + # Run make (with no arguments) to see the complete target list. + +-CPPFLAGS = -std=c++14 -O3 -DNDEBUG -ffast-math -fno-builtin-malloc -Wall -Wextra -Wshadow -Wconversion -Wuninitialized ++CPPFLAGS = -std=c++14 -O2 -DNDEBUG -ffast-math -fno-builtin-malloc -Wall -Wextra -Wshadow -Wconversion -Wuninitialized + #CPPFLAGS = -std=c++14 -g -O0 -ffast-math -fno-builtin-malloc -Wall -Wextra -Wshadow -Wconversion -Wuninitialized +-CXX = clang++ ++CXX = g++ + + # Compute platform (OS and architecture) and build accordingly. + -- cgit v1.2.3