1. A method for supporting compensation work, the method comprising: associating a data structure 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 associating the data structure with the at least one event that can be encountered during execution of a forward work.