The Stack Flashcards

1
Q

How many bytes can be addressed in memory

A

2^64

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Is pushed onto the stack when a function is called

A

Stack frame

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Held by the stack frame

A

local parameters, local variables, return values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The heap is used for

A

dynamically allocated memory in a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where the stack pointer(SP) points

A

top of the stack always

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

alignment of the stack

A

Quadword aligned(evenly divisible by 16)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where the frame pointer(FP) points

A

points to local variables in a stack frame

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Frame Record

A

Stores the contents of x29(SP) and x30(FP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

exceptions to unaligned memory access

A

addresses in SP must be quadword aligned
Machine instructions must be word-aligned

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

size of word

A

4 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

where local varibales are stored in assembly

A

Stored in the stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly