True/False Indicate whether the
statement is true or false.
|
|
1.
|
An IA32 central processing unit (CPU) contains a set of eight registers storing
32-bit values.
|
|
2.
|
RISC processors have done very well in the market for embedded processors,
controlling such systems as cellular telephones, automobile brakes, and Internet appliances.
|
|
3.
|
The preprocessor (cpp) modifies the original C program according to
directives that begin with the # character. For example,
the #include <stdio.h>.
|
|
4.
|
The compiler (cc1) translates the text file hello.i into the text file hello.s
, which contains an assembly-language program.
|
|
5.
|
The main memory is a temporary storage device that holds both a program and the
data in it such that it consists of a collection of static random access memory (SRAM)
chips.
|
|
6.
|
Caches are implemented with a hardware technology known as dynamic random access
memory (DRAM).
|
|
7.
|
To inspect the contents of machine-code files, disassemblers can
be used to generate similar assembly code from the machine code with the command
unix> objdump -d
code.o
|
|
8.
|
Early RISC processors had typically less than 100 instructions
|
Modified True/False Indicate
whether the statement is true or false. If false, change the identified word or phrase to make the
statement true.
|
|
9.
|
HCL (“hardware control language”), is
the language that is used to describe the control logic of the different processor
designs.
|
Multiple Choice Identify the
choice that best completes the statement or answers the question.
|
|
10.
|
The assembly instruction cmpb means
a. | compare word | c. | compare byte | b. | comapre double word | d. | compare integer |
|
|
11.
|
The assembly instruction testw
means:
a. | test word | c. | test double word | b. | test byte | d. | test integer |
|
|
12.
|
The assembly instruction jmp means
a. | Indirect jump | c. | Effective jump | b. | Direct jump | d. | None of the
above |
|
|
13.
|
Learning about processing design is important because :
a. | Understanding how the processor works aids in understanding how the overall computer
system works | c. | You just might work on a processor design an it is intellectually interesting
| b. | Embedded-system designers must understand how processors work
| d. | All of the
above |
|
|
14.
|
Random-access memories store multiple words, using an
address to select which word should be read or
written. Examples of random-access memories include :
a. | the virtual memory system of a
processor | c. | a and b | b. | the register file, where register identifiers
serve as the addresses | d. | None
of the above |
|
Short Answer
|
|
15.
|
Compile the following C program called a.c and provide the assembly code
file a.s
#include <stdio.h> int main() { int i, j=7,
sum=0;
for(i = 1; i < 25;
i++) sum+=
i+j*3;
printf("Sum=%d\n", sum);
return 0; }
|
|
16.
|
Fill in the following table showing the results
of evaluating Boolean operations on bit
vectors. Operation Result a
01101001 b
01010101 ~a ~b a & b a |
b a ^ b
|
|
17.
|
Fill in the table
below showing the effects of the different shift operations on singlebyte quantities. The best way to
think about shift operations is to work with binary representations. Convert the initial values to
binary, perform the shifts, and then convert back to hexadecimal. Each of the answers should be 8
binary digits or 2 hexadecimal digits.
x
x << 3
x >> 2
(Logical)
x >> 2(Arithmetic) Hex Binary
Binary Hex Binary
Hex
Binary Hex 0xC3 0x75 0x87 0x66
|
|
18.
|
a. Compute the unsigned
interpretation (B2U4(x)) of x =
0x5 b. Compute the two’s complement interpretation (B2T4(x)) of x = 0x5
|
|
19.
|
a. Compute the unsigned
interpretation (B2U4(x)) of x =
0xD b. Compute the two’s complement
interpretation (B2T4(x)) of x =
0xD
|
|
20.
|
a. Compute the unsigned
interpretation (B2U4(x)) of x =
0xF b. Compute the two’s complement
interpretation (B2T4(x)) of x =
0xF
|