Learning about memory deeper when started to think about installing linux from scratch
since installing it requires a separate partition, I took a deep dive into what computer memory is.
Physical and virtual memory: In typical computers, we do not directly work with physical addresses but we work with virtual memory! The pointer addresses and memory locations that are exploited in hacks and used to store variables in programs are in virtual memory! This is mananged by the OS and given to a specific process!
This is connected to how a repository pattern saves the data to actual infra. Virtual memory is like the repository while the physical memory is the infra!
this is not the case in embedded, where we sometimes work with physical memory addreses!
When a process is loaded, the operating system allocates certain memory from the pile of virtual memory. The virtual memory is actually composed of stack and heap!
Eventually, stack and heap made sense to me. Those are virtual memory concepts!
that is why we study data structures, so that we can work with those memory concepts better!
