#10189 - Aizz - Fri Aug 29, 2003 8:37 am
I think this problem should be a little easy for you, but I still hope you can help me out.
In a programme, I define the variables in different ways:
I think var_3[] should be located somewhere in WRAM, cause it will be constructed in runtime. But:
1. What about var_1[] and var_2[]? Are they located in WRAM or ROM or somewhere else?
2. If I want to place my data in ROM(NOT RAM), how should I do? And how can I get it from ROM?
(I write my programme in C, so if you have some code segment, leave it in C/C++ may be great helpful to me, please.)
Great thanks to anyone reply this topic.
===================
Parden me for my poor English...
In a programme, I define the variables in different ways:
Code: |
const UCHAR var_1[3]={1,2,3}; // UCHAR=u8 UCHAR var_2[3]={1,2,3}; void main() { UCHAR var_3[3]={1,2,3}; ... } |
I think var_3[] should be located somewhere in WRAM, cause it will be constructed in runtime. But:
1. What about var_1[] and var_2[]? Are they located in WRAM or ROM or somewhere else?
2. If I want to place my data in ROM(NOT RAM), how should I do? And how can I get it from ROM?
(I write my programme in C, so if you have some code segment, leave it in C/C++ may be great helpful to me, please.)
Great thanks to anyone reply this topic.
===================
Parden me for my poor English...