Chapter 8 Subroutines and Control Abstraction

Stack layout

Stack layout

Stack layout

Calling sequence

A prologue

An epilogue

A matter of decisions

Architecture (the actuality of the machine) plays a part with most implementations

In-line expansion

Parameter passing

Parameter passing

Position parameters versus named parameters

Variable numbers of arguments



Exception handling and unwinding the stack

Note on page 424

setjmp and longjmp