COMPSCI 630 Assignment: Smash compressing allocator
Code structure:
libSmash.cpp
: contains the definitions of malloc, free, realloc, and calloc functions with SIGSEGV handler. You should implement these.SmashHeap.h
: contains the SmashHeap class and C++ STL declarations.
To build the project:
- Clone HeapLayers (https://github.com/emeryberger/Heap-Layers) to the main directory of project.
- Clone zstd compression (https://github.com/facebook/zstd) to the main directory of project and build it according to the build instructions.
- Execute
make
to buildlibSmash.so
- For a debug build use
make libSmash-debug.so
.