Compiled Procedure
Prologue |
Procedure Code |
Epilogue |
Prologue: (or preamble) Save registers and return address; transfer parameters.
Epilogue: (or postamble) Restore registers; transfer returned value; return.
A return statement in a procedure is compiled to: