Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 4 - Memory Management Utilities / Memory Management Utilities Reference
Routines / Manipulating the Processor Caches


FlushCodeCache

You can use the FlushCodeCache procedure to flush the instruction cache.

PROCEDURE FlushCodeCache;
DESCRIPTION
The FlushCodeCache procedure flushes the current contents of the instruction cache. Because flushing this cache degrades performance of the CPU, you should call this routine only when absolutely necessary. See "Processor Caches" beginning on page 4-8 for details on when to call this procedure.

SPECIAL CONSIDERATIONS
On processors with a copy-back data cache, FlushCodeCache also flushes the data cache before it flushes the instruction cache, to ensure that any instructions subsequently copied to the instruction cache are not copied from stale RAM.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro for FlushCodeCache is _CacheFlush.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996