See below.
The subroutine uses two variables so there are eight bytes of space on the stack frame for them.
The program is not very efficient, as written.
There is no need to store and then load b
.
A non-optimizing compiler might do just that, however.
Fill in the blanks. Assume that b
is at displacement 0
and that c
is at displacement 4
.