CACHE

Cache all access to the virtual files used during compilation. The cache is a pool of 4 kilobyte (Kb) buffers with least recently used replacement.

Syntax:

[NO]CACHE

Properties:

Default: NOCACHE

Build Settings:

Type directly into the Additional Directives field on the Assembler tab of your project properties Assembler page.

Comments:

A new buffer is allocated for each request for file access until the pool reaches 64Kb (that is, 16 buffers). From this point, if the hit rate drops below 98%, where hit rate is the percentage of requests for data that is already in existing buffers, a request for data that is not already in existing buffers results in the allocation of a another new buffer, until a maximum of 1 megabyte (Mb) is in use. If the hit rate stays at or above 98%, a request for data that is not already in existing buffers results in the reuse of the least recently used buffer. The cache includes macro code, local and global macro variables, symbols, literals, working .bal file, working token file, and working relocation record file. You can save up to 1Mb of main memory by specifying NOCACHE, but your compilations can take longer.