在KEIL中设定数组与变量的绝对地址

[ 2008-12-14 9:58:00 | By: SystemARM ]
 
0

Using the __at macro that is defined in the header file absacc.h allows you to locate variables to absolute addresses as shown below:

C Example:
#i nclude <absacc.h>



const char MyText[] __at (0x1F00) = "TEXT AT ADDRESS 0x1F00";

int x __at (0x40003000);     // variable at address 0x40003000

你可能感兴趣的:(数组)