|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
Technical Support On-Line Manuals C166 User's Guide |
Register MaskThe C166 Compiler supports register masks for function prototypes and external function declarations. The register mask specifies which registers are modified by the function. The register mask is used by the compiler to optimize registers used in the code generated. The following example shows the definition of a register mask: <[>extern<]> <[>type<]> funcname (<[>args<]>) @mask The reg_mask is a 16-bit number that specifies the register modified by this function. Each bit in the reg_mask refers to one C16x/ST10 register. The encoding is as follows:
Two special values of the register mask specify all register or no registers:
The C166 Compiler displays the register mask for each function in the assembly listing (generated by the CODE directive) included in the listing file. The register mask (RMASK) is printed at the beginning and at the end of the function. Note
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||