Memory management simulator implementing buddy system.
The simulator is interactive and supports instructions for allocating, releasing and showing the memory layout.
To build run: make
To execute run: ./buddy <cantidad_de_memoria_a_manejar>
and interact.
Input can be one of:
RESERVAR <name> <amout>
: wherename
is the name of a tag asociated withamount
memory. This reservesamount
memory and associates it toname
or throws an error if the tag exists or there is not enough contiguous memory.LIBERAR <name>
: releases memory associated with name or gives an error if there's no such a tag namedname
.MOSTRAR
: display memory layout and existing bindings.SALIR
: exit program