Based on the information generated from the above program, produce a memory map table showing the layout of items listed in subquestion 1 above. The memory map table must show the start addresses of each entity. It should also show the start ar end addresses of the environment and the command line arguments. The memory map table must contain at least the following columns: 1. The start address of an entity 2. The name of the entity, such as p in f2

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Based on the information generated from the above program, produce a memory map table showing
the layout of items listed in subquestion 1 above.
The memory map table must show the start addresses of each entity. It should also show the start and
end addresses of the environment and the command line arguments.
The memory map table must contain at least the following columns:
1. The start address of an entity
2. The name of the entity, such as p in f2
3. The nature of the item, such as function, local variable, or uninitialsed global variable, etc
4. The memory region, eg, environment, command line arguments, code (or text), constants and
global initialised data, global uninitialed data, stack, and heap, etc.
In addition, you must use seven different background colours to highlight the following seven
memory regions as indicated below:
5. [Green] initialised global variables (including constants and literals)
6. [Red] uninitialised global variables
7. [Blue] stack (containing the local variables and formal parameters of functions)
8. [Magenta] heap (containing the dynamically allocated memories)
9. [Yellow] text (program code, ie, functions)
10. [Cyan] process environment
11. [White] command line arguments
Please also note that in your memory table, the memory addresses must be strictly sequential, from
the lowest address to the highest address to reflect how different entities of a process are layout in
the virtual memory space. Your memory table will not be accepted if the addresses are not lined up
sequentially in the table. If you find that entities from the same memory region are split in more than
one continuous area of memory, it is a sure indication that there is something wrong with your
memory map and you should find out what went wrong and fix it.
I recommend that you enter the above information into an Excel spreadsheet so that I can easily sort
the entities using their addresses.
Transcribed Image Text:Based on the information generated from the above program, produce a memory map table showing the layout of items listed in subquestion 1 above. The memory map table must show the start addresses of each entity. It should also show the start and end addresses of the environment and the command line arguments. The memory map table must contain at least the following columns: 1. The start address of an entity 2. The name of the entity, such as p in f2 3. The nature of the item, such as function, local variable, or uninitialsed global variable, etc 4. The memory region, eg, environment, command line arguments, code (or text), constants and global initialised data, global uninitialed data, stack, and heap, etc. In addition, you must use seven different background colours to highlight the following seven memory regions as indicated below: 5. [Green] initialised global variables (including constants and literals) 6. [Red] uninitialised global variables 7. [Blue] stack (containing the local variables and formal parameters of functions) 8. [Magenta] heap (containing the dynamically allocated memories) 9. [Yellow] text (program code, ie, functions) 10. [Cyan] process environment 11. [White] command line arguments Please also note that in your memory table, the memory addresses must be strictly sequential, from the lowest address to the highest address to reflect how different entities of a process are layout in the virtual memory space. Your memory table will not be accepted if the addresses are not lined up sequentially in the table. If you find that entities from the same memory region are split in more than one continuous area of memory, it is a sure indication that there is something wrong with your memory map and you should find out what went wrong and fix it. I recommend that you enter the above information into an Excel spreadsheet so that I can easily sort the entities using their addresses.
Expert Solution
Step 1: Given

Answer is explained below

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Types of Database Architectures
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education