Search⌘ K
AI Features

Granularity

Explore how memory is organized into granules such as bytes, halfwords, words, and double words in x64 architecture. Understand hexadecimal notation in C/C++ and GDB disassembly, and see how different memory sizes relate to each other at the bit level.

Granularity

Memory is divided into granules, or chunks of different sizes, to store data fields. Granules help us manage and access data in an organized way.

Fine and coarse granularity both have advantages and disadvantages. On one hand, fine granularity may cause input and storage overheads, but on the other, coarse granularity offers less flexibility in changing parts of the data.

Memory space is generally divided into bytes, halfwords, words, and double words.

Using hexadecimal numbers

The ...