Epilog (Windows Embedded CE 6.0)
1/5/2010
Although each procedure has only one prolog, a procedure can contain many epilogs if the procedure uses multiple exit points.
Each epilog is required to have certain specific parts. All parts are contiguous, with no intervening instructions.
Typically, an epilog segment contains separate sequences of instructions that perform the following tasks:
- Restore the frame pointer register, if it was saved in the prolog
- Restore nonvolatile registers, including the Program Counter and the stack
- Restore the return address
- Deallocate the local frame
- Return to the calling function