Introduction

Next: Basics

Sections

  • 1-1 Notation
  • 1-2 Instruction Set and Execution Time Model

Problems

  1. Express the loop

    for (e1; e2; e3) statement

    in terms of a while loop.

    Can it be expressed as a do loop?

  2. Code a loop in C in which the unsigned integer control variable i takes on all values from 0 to and including the maximum unsigned number, 0xFFFFFFFF (on a 32-bit machine).

  3. 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?