go to previous page   go to home page   go to next page hear noise

Answer:

No. When you get the block's address from SPIM you can use it. But you don't need to know what it is.


Picture

Except for debugging, usually you have no need to know the actual address of dynamically allocated blocks. But to start out let us look carefully at what happened. The picture shows SPIM after the program has run. The address of the block of memory is in $s0. This address is 10040000.

SPIM display

Looking in the data section at address 10040000 you find the block of four bytes. The program put the integer 77 (0x4d) into that block and the picture shows this.


QUESTION 6:

If another block of memory is allocated where will it be?