Skip to content

Malloc allocs space for a consecutive byte block in the system memory and return the addresses for the blocks.

Notifications You must be signed in to change notification settings

matheusdmm/Malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Malloc

Concealed within his fortress, the lord of Mordor sees all. His gaze pierces memory, processor, kernel, and disk space. You know of what I speak, Gandalf: a great memory usage, eating the proccess, wreathed in flame.

How it works

Malloc is a library/function that allocates dynamically the memory from the heap, which is an area where something is stored.

It allocates the memory of a requested size and returns a pointer to the start of the allocated block and stores this pointer in a variable of the same type of the initial malloc state.

It is useful when you dont know the amount of memory that your program gonna need, so you can dynamically alocate it in a smarter way, also, it allows objects to live beyound the scope of the current block.

What it can do

  • still learning and implementing.

/Etc

It was made using VIM, C language, GCC, Arch, Huge shout out to Dan Luu and TCMalloc

About

Malloc allocs space for a consecutive byte block in the system memory and return the addresses for the blocks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages