L1P attribute

Top  Previous  Next

The L1P attributes allows you to control how much memory is used for the Level-1 Program cache. It is available only for processors that support changing the size of the L1 cache.

 

The L1P cache is an area of memory that is used to optimise accesses to memory for instructions. The whole of the L1P memory is usually allocated as a cache, but you can use the L1P attribute to request that a different amount is used. Any such memory not being used for the cache is freed for allocation by the configurer for program instructions. You should refer to the hardware documentation for the allowed sizes for this cache, but you can always specify a size of zero to indicate that none of the memory is to be used for cache.

 

PROCESSOR node SMT362 L1P=0

 

The extra area of memory this makes available is called "L1P" and this name can be used to optimise tasks:

 

TASK test stack=10K OPT=code:L1P