求救!如何把一个常量数组定义在code段啦?
有哪位大侠知道吗?如何把一个常量数组定义在code段啦?
不甚感激! const 同楼上! 不是可以以code做前缀吗?好像是
unsigned char code a[]; msp430好像有个 __flash 修饰把。好多年不搞了,忘记了。 const const 回复【4楼】huanggua
msp430好像有个 __flash 修饰把。好多年不搞了,忘记了。
-----------------------------------------------------------------------
AVR IAR里面是__flash,430的有日子没碰过了,还真忘了
不过加上CONST基本上编译器会给放到FLASH里面的 const unsigned char ArrayYouNeed[]={1,2,3,4,5,6,7,8}; const or code 430中是用const 51中用code
页:
[1]