test whole program

This commit is contained in:
2025-08-28 11:18:56 +01:00
parent 153b625331
commit 3b5d713061
3 changed files with 10 additions and 4 deletions

View File

@@ -5,15 +5,15 @@
#endif
#include "malloc.h"
// #include "malloc.h"
#define malloc MALLOCCHERI
#define free FREECHERI
// #define malloc MALLOCCHERI
// #define free FREECHERI
int main(int argc, char* argv[] )
{
// Init alloc
INITREGULARALLOC();
// INITREGULARALLOC();
// =====================================================================
// Initialization & Command Line Read-In
// =====================================================================

View File

@@ -9,6 +9,8 @@
#include<assert.h>
#include<stdint.h>
#include "malloc.h"
#ifdef _MSC_VER
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
@@ -50,6 +52,9 @@
// Starting Seed
#define STARTING_SEED 1070
#define malloc MALLOCCHERI
#define free FREECHERI
// Structures
typedef struct{
double energy;

View File

@@ -152,6 +152,7 @@ pagesizes(size_t ps[MAXPAGESIZES])
return (pscnt);
}
__attribute__((constructor))
INITREGULARALLOC(void) {
size_t sz;
// Hard-coded for 1GB huge page