The Stack Flashcards

1
Q

What are the length of the addresses in ARMv8?

A

64-bit or 8 byte addresses

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

Stack Memory is?

A

The space in RAM provided by the OS to store data for a function

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

The Stack Pointer (SP) register always points to?

A

The top of the stack

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

The Frame Pointer (FP) is?

A

Used to point to local variables in a stack frame

Is stable once set at the beginning of the function

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

A Stack Frame is?

A

Pushed onto the stack when entering a function
It must be at least 16 bytes long
It is popped when the function returns to calling code

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

Stack Variables are?

A

Created by allocating extra space in the stack frame when entering a function

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

Stack Variables are addressed by?

A

Adding an offset to the base address in FP

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

Local Variables are?

A

Implemented as stack variables in assembly

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