https://github.com/misachi/allocator
Custom memory allocator using segragated fit mechanism
https://github.com/misachi/allocator
allocation allocator memory-allocation memory-management
Last synced: 8 months ago
JSON representation
Custom memory allocator using segragated fit mechanism
- Host: GitHub
- URL: https://github.com/misachi/allocator
- Owner: misachi
- License: mit
- Created: 2024-07-02T15:49:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-21T21:48:23.000Z (over 1 year ago)
- Last Synced: 2024-07-22T20:35:55.711Z (over 1 year ago)
- Topics: allocation, allocator, memory-allocation, memory-management
- Language: C
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Allocator
Custom dynamic memory allocator using the segragated fit mechanism
Built this as part of [SiKV](https://github.com/misachi/SiKV), that I am also working on, but I felt the need to have it on a separate repo to work on it independently -- as I add more features in the future
# Installation
```
Clone the repository to a local directory e.g /tmp
cd /tmp/allocator # Replace /tmp to your directory of choice
make install
```
The library will be installed in the `/usr/local/lib` directory. Ensure the user has the right access to `/usr/local/lib` directory
Once installed, the header file can be accessed in the usual way: ``
# Uninstallation
```
cd /tmp/allocator # Replace /tmp to your directory of choice
make uninstall
```
...or you can do this
```
rm /usr/local/lib/liballoc.so
rm /usr/local/include/alloc.h
```