/bmalloc

bmalloc: buddy heap memory allocator

Primary LanguageC

bmalloc

bmalloc: buddy heap memory allocator

Instructions

  1. build test cases
$ make
gcc -o test1 test1.c bmalloc.c
gcc -o test2 test2.c bmalloc.c
gcc -o test3 test3.c bmalloc.c 
  1. run desired test case
$ ./test1
$ ./test2
$ ./test3

Run addtional test cases

  1. move to the testcases directory
$ cd testcases/
  1. build test cases
$ make
gcc -o test_freeall test_freeall.c ../bmalloc.c -I../
gcc -o test_struct test_struct.c ../bmalloc.c -I../ -fpack-struct
  1. run desired test case
$ ./test_freeall
$ ./test_struct