# Meaning of Epilogue in Computing

1. (computing) A component of a computer program that prepares the computer to return from a routine.

I’d like to know more & haven’t been able to successfully search for info. Could anyone point me to a source / share their knowledge?

It depends on context, languages, operating systems

In many languages, Prologues and Epilogues are the parts automatically added by compilers at the beginning and end of each function, for example adjusting stack pointers or copying parameters.

The popular x86 architecture has two instructions, ENTER and LEAVE, that are designed to be used as a prolog and epilog for functions. They adjust stack pointers. In practice they are not used, see this stackoverflow question.

The same architecture also has two pairs of instructions, PUSHA/POPA and their 32-bit analogs PUSHAD/POPAD, which could also form part of prologs and epilogs. They store and restore registers, though in practice they are not used, see this stackoverflow question.

• I agree with you up until the last paragraph. I see what you're going for, but I think it's a bit too much of a stretch. If you consider constructors and destructors to be prologs and epilogs, then any resource acquisition and release functions could be — e.g., fopen() and fclose() in C — which I think strays from the meaning of "preparing to enter or leave a routine". May 31 '21 at 2:05