embeddev 发表于 2010-11-27 16:42:45

IAR 怎么强制把变量定义在偶地址上面呢?

如题!

bluefeel 发表于 2010-11-27 16:53:59

看错了......

xiesx1985 发表于 2010-11-28 12:50:31

可以直接定义到固定的某一个地址上(包含偶地址)。

——如果只是偶地址的话……不会

again 发表于 2010-11-28 13:18:41

union

cndavy 发表于 2010-12-16 21:22:32

有没有编译指令?

dupeiyuan 发表于 2010-12-24 19:47:27

我记得好像可以这样
#define abc *(unsigned int *)0x1000

是不是这样就把abc定义在0x1000地址了

iceberg 发表于 2010-12-26 00:36:17

#pragma data_alignment=2

millwood0 发表于 2010-12-26 00:45:34

"IAR 怎么强制把变量定义在偶地址上面呢?"

you need to read the @#%@#%@# compiler manual!
页: [1]
查看完整版本: IAR 怎么强制把变量定义在偶地址上面呢?