Final Flashcards
Variable-length instructions are easier to decode than fixed-length instructions
False
The best architecture for evaluating postfix notation is the stack- based architecture
True
Fixed-length instructions always have the same number of operands
False
One disadvantage to _______ representation is that most computers require words to be written on word address boundaries
big endian
A jumpstatement is an example of a(n) _____________ instruction
Transfer of control
Fixed- length instructions
waste space but are fast and perform better than variable length instructions
waste space but are fast and perform better than variable length instructions
memory-memory, register-memory, and load-store
Consider the postfix (reverse Polish notation) 10 5 + 6 3 - / equivalent infix expression is:
(10+5)/(6-3)
Suppose the memory of a computer is as follows:
12
34
56
78
What integer value is this on a big endian computer?
12345678
Suppose the memory of a computer is as follows:
12
34
56
78
What integer value is this on a little endian computer?
78563412
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?
BEBAFECA
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?
800
900
1000
very useful in matrix operations:
no great example because this category not very useful:
Word processing and normal everyday:
activities most current parallel systems:
SIMD
MISD
SISD
MIMD
What is the basic computer performance equation?
CPU Time = seconds/program = (instructions/program) X (avg. cycles/instruction) Х (seconds/cycle)
How do CISC and RISC machines try to achieve better performance?
- CISC machines reduce the number of instructions per program, and
- RISC machines reduce the number of cycles per instruction.