How do i put an array into the Code segment instead of data segment?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How do i put an array into the Code segment instead of data segment?

1,825 次查看
firmware
Contributor I
Hello Guys,

I have a long array that I is not gonna be changed and I dont want to use an EEPROM or Serial Flash. I remembered that i can do this with Keil C51 using storage modifier "code".  I was wondering if the Codewarrior V6.1 for HCS08 series. Is there any such modifier that i can before the following code?

unsigned char Array_nv_chg[1024] = {...};

Thanks,

Samuel
标签 (1)
0 项奖励
回复
2 回复数

962 次查看
firmware
Contributor I
Hi Compiler Guru,

Thanks! I really appreciate it. Its so simple I feel bad not to know known it :smileywink:

Firmware
0 项奖励
回复

962 次查看
CompilerGuru
NXP Employee
NXP Employee
Try const :smileyhappy:.

Daniel
0 项奖励
回复