Lecture 4: Program Tuning and Optimization

Background Material

Reading

Topics

Tasks

  • Compute CPE and CPI for vsum.c.
  • Compute CPE for the various versions of

    Lecture Notes

    Programs

    1. counter.c - access to cycle counter
    2. counter.h
    3. vsum.c - cycle counting example
    4. Pointers and aliasing (see twiddle.c)
    5. Functions and side-effects (see f.c)
    6. Vector example and optimizations (see vec.c)

    Resources

    Created: Sept. 27, 2006 by jjohnson@cs.drexel.edu