<<< Stack Machine Example | Index | Stack Machine Implementation >>> |
The stack machine needs two types of memory to run:
memory to store a sequence of encoded commands and their operands
the data stack
Both memories could by allocated either statically or dynamically. It is up to you which way to go. Note that COPYNEW.zip code example illustrates dynamic memory allocation using the new C++ operator.
<<< Stack Machine Example | Index | Stack Machine Implementation >>> |