Question: 1. Using gcc and determine the minimal activation record size for a function. State the size along with an explanation how it was determined, with
1. Using gcc and determine the minimal activation record size for a function. State the size along with an explanation how it was determined, with code fragment if necessary to reproduce.
2. Using gcc and determine the following. For each answer explain how it was obtained, with code fragment as needed to reproduce. a) maximal size of the stack if no heap is used, down to 1024 bytes b) the same if heap grows at about the same rate as the stack at the same time c) if the answers in a/b are different, why
Do both empirically and then optionally compare to any other way you can find this possibly.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
