→ كل المشاريع

memalloc

بواسطة @edaywalid

11

implementation of memory allocation functions in c (malloc , free , realloc , calloc) using unix syscalls

عن هذا المشروع

memalloc A custom implementation of memory allocation functions in C using the sbrk Unix kernel syscall. This project provides a robust and educational approach to understanding memory management by implementing malloc, free, realloc, and calloc from scratch. It also includes utilities for debugging and demonstrates usage in various data structures. Features Custom Memory Allocation: Implements memory allocation using sbrk. Thread-Safe Operations: Ensures safe usage in multithreaded environments with pthreadmutext. Memory Management: Supports splitting and coalescing memory blocks to reduce fragmentation. Debugging Utilities: Provides functions to print memory statistics and layout. Standard Functions: Implements malloc, free, realloc, and calloc. Future Enhancements Improved Fragmentation Handling: Reduce memory fragmentation for better performance. Optimized sbrk Usage: Enhance performance by minimizing system calls. Advanced Debugging Tools: Add visualization tools for memory layout and usage. Prerequisites Make: Version 4.4.1 or higher. GCC: Version 14.1.1 or higher. Unix-based System: The project uses sbrk, which is not supported on Windows. Build and Run

من ملف README الخاص بالمشروع على GitHub

النجوم
11
التفريعات
0
آخر تحديث
06/04/2025

أضف هذه الشارة إلى ملف README

أظهر أن مشروعك مُدرج على «صُنع في الجزائر».

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/memalloc.svg)](https://www.madeinalgeria.dev/projects/memalloc)

مشاريع ذات صلة