From e10e31f20fe3785bb10691b256cc57a036b5846d Mon Sep 17 00:00:00 2001 From: Akilan Date: Mon, 11 Aug 2025 13:28:15 +0100 Subject: [PATCH] test whole program --- benchmarks/allocator/allocator_shared_object_file.c | 4 ++-- benchmarks/allocator/build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/allocator/allocator_shared_object_file.c b/benchmarks/allocator/allocator_shared_object_file.c index 29e56f6..c2b53c9 100644 --- a/benchmarks/allocator/allocator_shared_object_file.c +++ b/benchmarks/allocator/allocator_shared_object_file.c @@ -197,8 +197,8 @@ pagesizes(size_t ps[MAXPAGESIZES]) return (pscnt); } - -__attribute__ ((constructor)) void INITREGULARALLOC(void) { +__attribute__((constructor)) +static void INITREGULARALLOC(void) { size_t sz; // Pre Allocate 400 MB sz = 1073741824; diff --git a/benchmarks/allocator/build.sh b/benchmarks/allocator/build.sh index d069ac0..81af7d5 100644 --- a/benchmarks/allocator/build.sh +++ b/benchmarks/allocator/build.sh @@ -1,4 +1,4 @@ -cc -O3 -g -W -Wall -Wextra -Wno-unused-parameter -shared -fPIC allocator_shared_object_file.c -o hugepage_alloc.so +cc -g -W -Wall -Wextra -Wno-unused-parameter -fPIC -shared allocator_shared_object_file.c -o hugepage_alloc.so # ar rcs alloc.a alloc.o # cc -O3 -g -W -Wall -Wextra -Wno-unused-parameter -shared -fPIC -o alloc.so # cp alloc.o ../benchmarks/kmeans/