Declaring Pointers for Different Addressing Types
Understand how to declare pointers for different addressing types including byte, half word, word, and double word on Linux ARM64. Learn how to use 64-bit and 32-bit pointers with various load and store instructions. Explore memory layout changes during instruction execution and how registers function as pointers for effective debugging.
We'll cover the following...
We'll cover the following...
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 ...