Distinguish between the frame pointer and the stack pointer.

What will be an ideal response?

The stack pointer points to the top of the stack and as more or less stack space is needed will change position during the execution of a particular piece of code (e.g. function) . Since it is common to reference the location of variables stored on the stack as an offset from the stack pointer this movement becomes problematic. A solution is to use another register to store the location of a fixed reference point that will be constant throughout the execution of some particular piece of code (e.g. function). Note: This is not to say that when a function calls another function the frame pointer will remain fixed. It will not. Rather it will be changed on call and reestablished upon return thus for all execution of an given functions own code it will be fixed.

Computer Science & Information Technology

You might also like to view...

Which CPU, developed originally by DEC, had 64-bit data and address buses, and was the first chip to reach 1 GHz?

A. SPARC B. Alpha C. PowerPC D. Athlon

Computer Science & Information Technology

If you have 3 possible outcomes in a nested IF statement, then you need ________ logical tests.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology