COMP1521 18s1 COMP1521 18s1 Final Exam Comp Sys Fundamentals
[Instructions] [Documentation]
[Q1] [Q2] [Q3] [Q4] [Q5] [Q6] [Q7] [Q8] [Q9] [Q10]

Question 6 (4 marks)

Considering the following "memory map" showing the typical partitioning of memory space used in C programs:

  1. What is each of the following regions used for:

    1.   Region1

    2.   Region2

    3.   Region3

    4.   Region4

  2. In which region are objects created with malloc() placed?

  3. Which regions are fixed in size once the program is loaded and starts executing?

Type your answers to this question into the appropriate place in the q6.txt file, and submit it using the command:

submit q6

This will make a copy of the q6.txt file as your answer for this question. You can run the submit command as many times as you like, but only the most recent submission will be marked.