Memory and Data Structures

Wednesday, May 20, 2026 | 1 minute read | Updated at Wednesday, May 20, 2026

Emmanuel Decena

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!

© 2025 - 2026 Blog

All rights reserved

About

I created this blog to monitor my curiosity, writing about concepts that interest me.

I write about personal projects, ideas, and the things I learn along the way. Hand-crafted and LLM-free.

Occasionally, a travel story or food review sneaks in.

If my writing resonates with you, feel free to connect with me at ecdecena [@] gmail.com.

I’m currently based in Cebu City, PH 🏖️.

Disclaimer

The contents on this site reflect my thoughts and opinions only. It does not represent the views of any organization, employer, or institution I am affiliated with.

Social Links