4 a c function may have multiple local variables a

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: ssroom examples, we always assume that the stack grows towards the lower end of address spaces. However, it is perfectly fine to design a system where the stack grows upward. Suppose you are given the following system: 1. The stack grows in one direction, but we do not know which direction yet. 2. You can only program in C. 3. You cannot operate on the stack directly (i.e. only function calls in your program can change content of the stack, you cannot push/pop the stack directly). 4. A C function may have multiple local variables. a. These local variables are allocated on the activation frame of the function. b. These local variables are allocated consecutively on the stack, but in a random order (i.e. not in the order...
View Full Document

This note was uploaded on 07/20/2013 for the course ECE 2035 taught by Professor Willis during the Spring '13 term at Georgia Institute of Technology.

Ask a homework question - tutors are online