// Place the following picture as a comment at the beginning of // your lab2.cpp file. // Add the significant addresses to diagram to the right of the boxes. // The first address, x10000, i.e., 10000 hex, is shown. // Add edata, end, and the names of the variables to right as well. // As an example, etext is shown. Fill in its address. // +------------------+ // | TEXT | x10000 // | | // | instructions in | // | machine code | // | | // +------------------+ x???????? = etext // | DATA | // | - initialized | // | variables | // | --------------- | // | - uninitialized | // | variables | // | | // | --------------- | // | - heap for | // | dynamic | // | allocation | // | | // | | // +------------------+ // | // | // V // // . // . // . // // ^ // | // | // +------------------+ // | STACK | // | - function | // | activation | // | records | // | - local | // | automatic | // | variables | // +------------------+