GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mindoodoo/Malloc

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
include
include
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
calloc.c
calloc.c
 
 
free.c
free.c
 
 
malloc.c
malloc.c
 
 
realloc.c
realloc.c
 
 
utilities.c
utilities.c
 
 

Repository files navigation

Malloc Re-implementation

This project is a basic reimplementation of the malloc family of standard library functions. This is done by only using the brk and sbrk system calls.

This project was done in march 2022 over a period of 3 weeks.

Building

This project is built into a static library named libmy_malloc.so using make.

make

or

make re

Usage

The following functions are implemented :

void *malloc(size_t size);
void *calloc(size_t nmemb, size_t size);
void *realloc(void *ptr, size_t size);
void free(void *ptr);

In order to use them, link your binary to the libmy_malloc.so static library. The function prototypes can be found in the include/malloc.h header file.

Features

  • Full memory alignment on a power of 2 bytes
  • Allocation done in multiples of 2 pages
  • Utilizes best fit algorithm

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.