Patent ID: 7870542
Filing Date: 2011-01-11
Classification: G06F

Abstract:
1. A method executed by a processor comprising the steps of: pushing at least one argument on a stack; pushing a size of the at least one argument on the stack, wherein the size of the at least one argument pushed on the stack denotes a size of arguments passed to a called function; popping the size of the at least one argument on the stack, wherein the size of the at least one argument popped off the stack is utilized to identify remaining arguments on the stack and to pop the remaining arguments off the stack; incrementing a stack pointer by the size of the at least one argument popped off the stack in order to point to a first argument on the stack associated with the called function; and utilizing the stack pointer to pop all data located on the stack above the stack pointer off the stack; wherein the stack is cleaned by popping all arguments utilized by the called function off the stack based on the popped size of the at least one argument.