The Stack Flashcards
1
Q
How many bytes can be addressed in memory
A
2^64
2
Q
Is pushed onto the stack when a function is called
A
Stack frame
3
Q
Held by the stack frame
A
local parameters, local variables, return values
4
Q
The heap is used for
A
dynamically allocated memory in a program
5
Q
Where the stack pointer(SP) points
A
top of the stack always
6
Q
alignment of the stack
A
Quadword aligned(evenly divisible by 16)
7
Q
Where the frame pointer(FP) points
A
points to local variables in a stack frame
8
Q
Frame Record
A
Stores the contents of x29(SP) and x30(FP)
9
Q
exceptions to unaligned memory access
A
addresses in SP must be quadword aligned
Machine instructions must be word-aligned
10
Q
size of word
A
4 bytes
11
Q
where local varibales are stored in assembly
A
Stored in the stack