1. The sample code
int live(int a, int b, int c)
{
int u,v,w,x,y,z;
v = 1;
z = v + 1;
x = z * v;
y = x * 2;
w = x + z * y;
u = z + 2;
v = u + w + y;
return v * u;
}
void main()
{
int i;
i = live(1,2,3);
}
2. The stack layout
2.1. Stack layout
2.2. Stack layout for the sample code
The stack frame for main is highlighted in blue, and the stack frame for live is highlighted in green.