The present invention is related with the management of memory in
environments of limited resources, such as those found for example in a
smart card. In a more particular manner, the invention relates to a
method of managing the data storage resources of volatile memory, the
object of which is to reduce the size of volatile memory necessary to
implement the stack of the system, and thereby to reserve more volatile
memory available for other needs or procedures of the system or of other
applications When the stack grows and comes close to its established
limit, the system carries out a transfer of a stack block located in the
volatile memory to an area of non-volatile memory, hence this transfer
allows a compression of the stack increasing its size in a virtual
manner.