CACHESIZE

Inquiry Intrinsic Function (Generic): Returns the size of a level of the memory cache.

Syntax

result = CACHESIZE (n)

n

(Input) Must be scalar and of type integer.

Results

The result type and kind is the same as n. The result value is the number of kilobytes in the level n memory cache.

n = 1 specifies the first level cache; n = 2 specifies the second level cache; etc. If cache level n does not exist, the result value is 0.

Example

CACHESIZE(1) returns 16 for a processor with a 16KB first level memory cache.


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.