Skip Navigation

Basics of memory allocation

samwho.dev /memory-allocation/

One thing that all programs on your computer have in common is a need for memory. Programs need to be loaded from your hard drive into memory before they can be run. While running, the majority of what programs do is load values from memory, do some computation on them, and then store the result back in memory.

In this post I'm going to introduce you to the basics of memory allocation. Allocators exist because it's not enough to have memory available, you need to use it effectively. We will visually explore how simple allocators work. We'll see some of the problems that they try to solve, and some of the techniques used to solve them. At the end of this post, you should know everything you need to know to write your own allocator.

Found via [email protected] https://lemmy.pineapplemachine.com/post/24337

0
Software Engineering @group.lt I eat words @group.lt

Memory Allocation

5 0
0 comments