1. A method for operating a virtual machine to provide continuation passing in a wireless device, wherein the virtual machine comprises a stack memory, and the method comprises: encountering a context-creating trigger; constructing a continuation block in response to the trigger, wherein the continuation block comprises a stack fragment derived from the stack memory; encountering an evaluation instruction; and storing the stack fragment from the continuation block on the stack memory in response to the evaluation instruction.