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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started