other benchmarks

This commit is contained in:
2026-04-10 02:50:17 +01:00
parent 913d17224b
commit dc9c8578b6
11 changed files with 4342 additions and 8059 deletions

View File

@@ -16,6 +16,8 @@
void* tiny_malloc(size_t);
void tiny_free(void*);
#define ALIGN 16
// #define HEAP_SIZE 65536 // 64 KB heap
// #define PHYS_BASE 0x80000000
@@ -57,7 +59,11 @@ void * __capability malloc(size_t size) {
cap = cheri_bounds_set(cap, size);
cap = add_delta(cap, 12);
int delta = 12;
delta = (delta + ALIGN - 1) & ~(ALIGN - 1);
cap = add_delta(cap, delta);
// // Align to 8 bytes (important for capability safety)
// size = (size + 7) & ~7;