
3.8 | Data Structures and Algorithms Using C++
So, the instruction space occupied by the above program is 48 bytes.
In the disassembled program, the instructions of the main function started from 0 to 2f hexadecimal value.
So, the total memory occupied by the above main function is (30)
16
= (48)
10
. Hence, the total instruction space
is 48 bytes.
3.5.6 CALCULATING THE DATA SPACE
e data space is the total space occupied by the data, rodata, bss and heap sections of the executable program.
So, let the space occupied by each of the said section is found. Because there is no dynamic memory allocation,
the heap section will not be created at the run ...