test whole program

This commit is contained in:
2025-08-11 13:28:15 +01:00
parent 36128e6d7f
commit e10e31f20f
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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/