...

/

Declaring Pointers for Different Addressing Types

Declaring Pointers for Different Addressing Types

Learn how pointers are used to address memory cells and registers, and learn about addressing different memory granularity in assembly language.

Pointers revisited

The pointer is a memory cell or a register that contains the address of another memory cell. Memory pointers have their own addresses because they are memory cells too. On a 32-bit Linux, pointers are 32-bit, and on a 64-bit Linux, pointers are 64-bit.

Addressing types

Memory cells can be of one byte, half word, word, or double word sizes. Therefore, we can have a pointer to a byte, a pointer to a half word, a ...