added new memory allocator files and README

This commit is contained in:
2024-11-18 13:04:44 +00:00
parent 515e5a30e2
commit 794f593390
9 changed files with 684 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**********************************
* bump_alloc.h
* Jeremy.Singer@glasgow.ac.uk
*
* This is a simple bump-pointer allocator.
* It mmaps a large buffer of SIZE bytes,
* then allocates this space in word-sized
* chunks to client code (in main fn).
*
* Initial simple memory allocator test.
* Explore capability narrowing operations
* and intrinsics for bound reporting.
*/
void init_alloc(int size_in_bytes);
char *bump_alloc(int bytes); /* the simplest malloc */
/* oh, and there's no free() ! */