This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C语言如何快捷的将大数据结构体定义到DDR中!



感谢所有工程师的回答:

        尊敬的高手你好!   我们想用TMS320C6424做产品开发。我定义了一个很大的结构体块类型:想定义结构体指针 POOLList *p1,*p2,*p3  和结构体变量POOLList p4,p5 并将这些变量声明到DDR中;

       typedef struct poollist1{
                    Uint32 anastep[2002];
                    Uint32 digstep[502];
                   struct poollist1 *poolNext;
                } POOLList;

我采用方法1:申请5个这样的语句比较麻烦!感觉麻烦,也不知道正确与否,

                 #pragma DATA_SECTION(p1,".DDR") 

                 #pragma DATA_SECTION(p2,".DDR") 

                 #pragma DATA_SECTION(p3,".DDR") 

                 #pragma DATA_SECTION(p4,".DDR") 

                 #pragma DATA_SECTION(p5,".DDR") 

     在定义变量:POOLList *p1,*p2,*p3,p4,p5;

        我的问题是:我这样做正确吗?有没有更好的方法,在申请结构体类型时做一定处理,后面就可以不 #pragma定义,直接定义变量就申请到DDR的方法呢?

       不管得到你们的任何帮助,我都会很感激!!!!!!

                                                                                                                                                                            Mr Wei