1. A method for supporting compensation work, the method comprising: providing a data structure associated with a compensation function, wherein the data structure contains a pair of pointers, which includes a first pointer to a code to be executed for the compensation function, and a second pointer to a stack frame of a closest lexically enclosing scope of a declaration of the compensation function in a computer program text; and executing the compensation function based on the data structure on one or more microprocessors, when at least one event is encountered during execution of a forward work.