Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1.11 KB

README.md

File metadata and controls

20 lines (12 loc) · 1.11 KB

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