Section Exercises
Last updated
Last updated
True or False
False!
The closer a level of the memory is to the processor, the more expensive the technology that it is using is, meaning that they are faster but smaller in size. As a reminder, the closest level of memory is represented by the registers followed by the cache levels.
True!
Bits are grouped into words at different scales (e.g., quad-words) for various purposes such as storing more information.
Note: a word length (number of bits in a group) can vary from 16 to 64 bits, depending on the computer's architecture.
False!
In Little-Endian, the rightmost bytes are the most significant, while in Big-Endian, the leftmost bytes are the most significant.
True!
In personal/normal computers the significance of the bytes goes from right to left.
True!
If we see the memory as in the analogy used in , we can motivate this definition as follows. The memory is like a library and each address is a book. If you want to learn more about, for example, ARM architecture, you will look for a book that explains this subject. You will most likely find such a book on the "Computer Organization" shelf. Reading this book you find another related subject that gets your attention so you go to the same "Computer Organization" section to find a book about this new subject. The memory works similarly. If an address is referenced, then it is very likely that an address close by will be referenced soon.
False!
The BSS segment holds uninitialized data, more precisely, global or static variables that are either uninitialized or initialized to zero. The Data segment holds initialized data.
True!
SRAM uses six to eight transistors per bit of storage, while DRAM uses just one transistor per bit of storage. Because of that SRAM is more expensive, but despite this fact, it is much faster than DRAM and it is mostly used in the cache levels (L1, L2, L3).
rsp
register keeps track of the bottom of the current stack frame while rbp
denotes the top of the stack.False!
The rsp
register keeps track of the top of the stack, while rbp
denotes the bottom of the current stack frame.
rsp
multiples of 8 bytes.True!
The stack grows from higher to lower addresses and rsp
keeps track of the top of the stack, so, in order to reserve space on the stack, you need to subtract from rsp
multiples of 8 bytes.
Keep in mind that in most of the assignments from this lab manual, you need to make sure that the stack is aligned, meaning that you always subtract multiples of 16 bytes.
False!
Indeed SRAM is used for cache levels, but flash memory, a nonvolatile memory, is used for secondary memory and not for main memory.
False!
Both flash memory and magnetic disks are used for secondary memory.
True!
DRAM uses one transistor for one bit of storage, while SRAM uses six to eight transistors per bit in order to prevent the information from being disrupted when a read operation is performed. Moreover, DRAM is slower and cheaper than SRAM. Because of those differences between DRAM and SRAM, DRAM is used for main memory, while SRAM is used in cache levels close to the processor.