spring 2013 exam 2

Caller pushes input parameters onto the stack in the

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: - it only allocates the input parameters on the stack, and updates the stack pointer accordingly (right on top of the input parameters). caller pushes input parameters onto the stack in the reverse order as the parameters are declared. callee is responsible of populating the rest of the activation frame, which includes the return address, return value, and local variables. caller is responsible of deallocating the entire activation frame (of the callee) when the callee returns. The activation frame of a function is populated in the following order: 1) input...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online