Keil Logo

Literal Symbols

Literal Symbols are identified by a back quote character (‘). Literal symbols must be used to access:

  • program variables or symbols which are identical with a predefined Reserved Word, such as debug command options, data type names, CPU register names, and assembler mnemonics.
  • CPU driver symbols (VTREG) which are identical to a program variable name.

Examples

Assume a variable R5 has been defined in the application. To access the R5 variable and not the register R5, prefix the symbol name with the back quote character (‘).

Accessing the R5 Register Accessing the R5 Variable
R5 = 121
‘R5 = 212

Assume a function named clock has been defined in the application. To access the VTREG clock, prefix the symbol name with the back quote character (‘).

Accessing the clock function Accessing the clock VTREG
clock
  0x00000DB2
‘clock
  20000000
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.