Introduction
Next: Basics
Sections
1-1Notation1-2Instruction Set and Execution Time Model
Problems
-
Express the loop
for (e1; e2; e3) statementin terms of a
whileloop.Can it be expressed as a
doloop? -
Code a loop in C in which the unsigned integer control variable
itakes on all values from0to and including the maximum unsigned number,0xFFFFFFFF(on a 32-bit machine). -
For the more experienced reader: the instructions of the basic and full RISCs defined in this book can be executed with at most two register reads and one write. What are some common or plausible RISC instructions that either need more source operands or need to do more than one register write?