Keil™, An ARM® Company

C166 User's Guide

REGFILE Compiler Directive

Abbreviation RF
Arguments A file name enclosed in parentheses.
Default None.
µVision Options — C166 — Global Register Coloring.
Description 

The REGFILE directive instructs the compiler to use a register definition file for global register optimization. The register definition file specifies the registers used by external functions. Using this information, the compiler can optimize the use of the general purpose registers. This feature enables global program-wide register optimization.

Example 
C166 SAMPLE.C REGFILE(sample.reg)

#pragma REGFILE(sample.reg)