AQA A’Level SLR02 Use of stack frames with subroutines


About this video

AQA Specification Reference
AS Level 3.1.1.9
A Level 4.1.1.9

In this video we take a look at the importance of a stack frame and how it is used with subroutine calls to store return addresses, parameters and local variables. We use a step-by-step example of a program to aid in your understanding.

Key question:

- How is a stack frame used with subroutine calls?

00:00 Use of stack frames with subroutines
00:06 intro
00:11 Roll the dice program
06:43 Key question
06:51 Outro

Last updated: 11.04.25