Function Prologue

In assembly language programming, the function prologue is a few lines of code at the beginning of a function, which prepare the stack and registers for use within the function. Similarly, the function epilogue appears at the end of the function, and restores the stack and registers to the state they were in before the function was called.

The prologue and epilogue are not a part of the assembly language itself; they represent a convention used by assembly language programmers, and compilers of many higher-level languages. They are fairly rigid, having the same form in each function.

Sometimes, function prologue and epilogue contain also buffer overflow protection code.

Read more about Function Prologue:  Prologue, Epilogue, Further Reading

Famous quotes containing the words function and/or prologue:

    Uses are always much broader than functions, and usually far less contentious. The word function carries overtones of purpose and propriety, of concern with why something was developed rather than with how it has actually been found useful. The function of automobiles is to transport people and objects, but they are used for a variety of other purposes—as homes, offices, bedrooms, henhouses, jetties, breakwaters, even offensive weapons.
    Frank Smith (b. 1928)

    A popular Government, without popular information, or the means of acquiring it, is but a Prologue to a Farce or a Tragedy.
    James Madison (1751–1836)