An apparatus and method for managing stacks in a virtual machine are
provided. The apparatus includes a first memory which checks the space of
a stack chunk and allocates a frame pointer if at least one of a push and
a pop are performed in a virtual machine; and a second memory which is
connected with an external bus, and stores frame pointers copied from the
first memory via the external bus.