Question: Please I need help in operating system by using C++. Run your program in both x86 (32 bit) and x64 modes and notice the difference

Please I need help in operating system by using C++.

Run your program in both x86 (32 bit) and x64 modes and notice the difference in your output.

Create a console application that perform the following:

1. a) Display the size of the following primitive data type: char, short, int long, float, double

b) Display the size of a pointer.

2.

Display the following memory address for your program:

Beginning data segment

Start and End of the program segment. (hint: One of the functions must be an empty function

place at the end of the program file, that will be the address of the end of the program segment).

Start of the Heap address of the main program

Start of the Stock address of the main program

3. Define a function and call it using using a pointer (call back function).

4. Determine and display the start, end and size of the heap memory the operating system allocate to

your program.

5. Determine and display the start, end and size of the stack memory the operating system allocate to

your program. (hint: recursion. If you use the call back function for this, then you satisfy #3 as well).

Note: Your program should have 3 functions, a main, a call back function and an empty function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!