Lecture 02 Flashcards

1
Q

Is assembler code portable across different architectures?

A

No

Assembler code is ISA specific

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

Do assembly languages have the following feature?

Labels

A

Yes

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

Do assembly languages have the following feature?

Data moves

A

Yes

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

Do assembly languages have the following feature?

Arithmetic operations

A

Yes

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

Do assembly languages have the following feature?

Loops and conditional constructs

A

No

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

Do assembly languages have the following feature?

Variable names

A

No

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

Do assembly languages have the following feature?

Data types

A

No

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

Do assembly languages have the following feature?

Method calls and returns

A

No

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

Do assembly languages have the following feature?

Conditional branches (or ‘branches’)

A

Yes

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

Do assembly languages have the following feature?

Unconditional branches (or ‘jumps’)

A

Yes

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

Can you choose the name for a register?

A

No

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

How many general purpose registers do x86 architectures have?

A

16

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

What makes an ISA ‘orthogonal’?

A

An ISA is ‘orthogonal’ if each instruction performs a unique task without overlapping with other instructions

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

Is x86 historically considered an orthogonal architecture?

A

No

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

Is ARM architecture considered orthogonal?

A

Yes

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

Why are intermediate results of calculations written to registers instead of back into memory?

A

It is much cheaper to keep the data in the registers as often moving the data to/from memory can take longer than the calculations themselves

17
Q

What is an operand?

A

An operator is something that an operator is applied to. For example, in 2 + 3, 2 and 3 are the operands and + is the operator.