In one embodiment, a method for improving performance of a processor
having a defective cache includes accessing first object code and
generating second object code from the first object code. The generation
of the second object code takes into account one or more locations of one
or more defects in a cache on a processor such that one or more
instructions in the second object code are written only to nondefective
locations in the cache.