Skip to content
josufhPublic

About

Created my own malloc, calloc, realloc and free functions.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Custom implementation of memory allocation functions

This is an attempt to make my own memory allocation functions (malloc, calloc, realloc and free) using sbrk() in Linux.

Program compiles and runs as expected, may use it in future projects.

Projects using this implementation:

  • None for now
How to compile the library and source file

From: https://renenyffenegger.ch/notes/development/languages/C-C-plus-plus/GCC/create-libraries/index

Create /bin/static folder and make the object with gcc -c src/memalloc_j/memalloc_j.c -o bin/static/memalloc_j.o

Create the library with ar rcs bin/static/libmemalloc_j.a bin/static/memalloc_j.o

Compile main.c with the bash file compile.sh

About

Created my own malloc, calloc, realloc and free functions.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages