A Concrete C Function
int add_squares(int a, int b) {
int x = a * a;
int y = b * b;
return x + y;
}
- Two
intparameters arrive in registers (edi,esi). - Two locals,
xandy, live in the frame. - Let us see how the compiler lays this out on the stack.