Keil Logo

The __at Keyword

The __at keyword allows you to specify the address for variables in your C source files. The following example demonstrates how to locate variable types using the __at keyword.

struct link  {
  struct link idata *next;
  char        code  *test;

struct link list   __at 0x00014000;          // list at 0x00014000
int const   MyVal  __at 0x81000000 = 0x123;  // MyVal at 0x81000000 with initialization

Refer to Absolute Variable Location for more information about the _at_ keyword.

  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.