Final Flashcards

1
Q

Variable-length instructions are easier to decode than fixed-length instructions

A

False

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

The best architecture for evaluating postfix notation is the stack- based architecture

A

True

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

Fixed-length instructions always have the same number of operands

A

False

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

One disadvantage to _______ representation is that most computers require words to be written on word address boundaries

A

big endian

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

A jumpstatement is an example of a(n) _____________ instruction

A

Transfer of control

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

Fixed- length instructions

A

waste space but are fast and perform better than variable length instructions

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

waste space but are fast and perform better than variable length instructions

A

memory-memory, register-memory, and load-store

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

Consider the postfix (reverse Polish notation) 10 5 + 6 3 - / equivalent infix expression is:

A

(10+5)/(6-3)

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

Suppose the memory of a computer is as follows:

12
34
56
78

What integer value is this on a big endian computer?

A

12345678

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

Suppose the memory of a computer is as follows:

12
34
56
78

What integer value is this on a little endian computer?

A

78563412

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

Suppose the memory of a computer is as follows (address 100 contains the hex value CA, etc)

CA
FE
BA
BE

Assume also that these four memory locations hold one 32 - bit integer. What integer value (in hex) is this on a little endian machine?

A

BEBAFECA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
Suppose we have the instruction LDWA 800. Given memory as follows:
 800 900 
900 1000 
1000 500 
1100 600 
1200 800

What would be loaded into the accumulator if the addressing mode is immediate?

What would be loaded into the accumulator if the addressing mode is direct?

What would be loaded into the accumulator if the addressing mode is indirect?

A

800
900
1000

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

very useful in matrix operations:

no great example because this category not very useful:

Word processing and normal everyday:

activities most current parallel systems:

A

SIMD
MISD
SISD
MIMD

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

What is the basic computer performance equation?

A

CPU Time = seconds/program = (instructions/program) X (avg. cycles/instruction) Х (seconds/cycle)

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

How do CISC and RISC machines try to achieve better performance?

A
  • CISC machines reduce the number of instructions per program, and
  • RISC machines reduce the number of cycles per instruction.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does Amdahl’s Law tell us about performance optimization?

A

Amdahl’s Law tells us that the system performance gain realized from the speedup of one component depends not only on the speedup of the component itself, but also on the fraction of work done by the component.

17
Q

What are the three primary characteristics of RISC computers?

A
  • Fixed - length instructions
  • high level of pipelining , and
  • multiple register sets
18
Q

Why do RISC machines operate on registers?

A

This means that instructions can be executed in fewer cycles and speeds up the execution of the code, and thus the performance of the hardware. The goal for RISC architectures is single-cycle instructions.

19
Q

What does the “reduced” in reduced instruction set computer really mean ?

A

“Reduced “ originally meant providing a set of minimal instructions that could carry out all essential operations . The main objective in RISC machines is to simplify instructions so they can execute more quickly .

20
Q

Name the four primary models of computation in Flynn’s taxonomy.

A

SISD
SIMD
MISD
MIMD

21
Q

What are the three shortcomings of Flynn’s Taxonomy?

A
  • There is no need for MISD machines .
  • Parallelism is not homogeneous .
  • There is no straightforward way to distinguish architectures of the MIMD category .
22
Q

Explain the difference between loosely coupled and tightly coupled architectures.

A

Loosely coupled and tightly coupled are terms that describe how multiprocessors deal with memory.

If there is one large, centralized, shared memory, we say the system is tightly coupled.

If there are multiple, physically distributed memories, we say the system is loosely coupled.

23
Q

What is performance benchmarking?

A

Performance benchmarking is the science of making objective assessments concerning the performance of one system over another

24
Q

What are SPEC and TPC acronyms for? How is the focus of the SPEC benchmark different from TPC benchmark?

A

SPEC is the Standard Performance Evaluation Corporation. TPC is the Transaction Performance Council.

The SPEC evaluates only CPU performance, the TPC measures the performance of the entire system.

25
Q

How can a programmer improve cache performance ?

A
  • Programmers should focus on improving the reference locality
  • This can be done by using cache -conscious algorithms
  • or a program’s data organization and layout.