This repository contains examples of memory management implemented in x86-64 assembly on Windows. Each example demonstrates different approaches to handling memory allocation and deallocation.
nasm -f win64 -o example.exe example.asm
gcc -m64 -o example example.o -lkernel32 -lmsvcrt
Replace example.asm with the desired file name.
.\example.exe
simple_memory_management.asm (EX2): Demonstrates basic manual memory allocation and deallocation.simple_memory_management_with_heap.asm (EX1): Shows how to manage dynamic memory using the heap.first_fit_allocation.asm (EX3): Implements a first-fit allocation strategy with a custom memory pool.This project is licensed under the MIT License - see the LICENSE file for details.