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.

Memory allocation

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I got a trouble from long time regarding memory allocation warning. In fact, I got the following warning :

[DSP280x_GlobalVariableDefs.c] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -q -pdr -o3 -fr"F:/TIDCS/test/build/" -i"../include" -d"_DEBUG" -d"LARGE_MODEL" -d"TARGET_IS_F2808" -mf -ml -mw -v28 -@"../Debug.lkf" "DSP280x_GlobalVariableDefs.c"
"C:\DOCUME~1\tt\LOCALS~1\Temp\TI64410", WARNING! at line 152:
 [W9999]
         Size is > 64 words, allocation will span page boundary
    _DevEmuRegs:    .usect    "DevEmuRegsFile",208,1,1

 

Does somebody knows what does exactly mean this warning and how to setup compiler to clear it?

Thanks

Ol

  • Ol,

    You are getting this warning because you are using the "Generate Extended Assembly Warnings" (-mw) build option.  The warning is harmless.  It is saying that the array DevEmuRegs() is larger than 64 words, and therefore will not fit on a single 64-word data page.  The data page is relevant to a particular mode of addressing used in the C28x, called 'Direct Addressing'.  The compiler knows about this, and also knows the array is larger than a data page.  Therefore, the compiler will take special precautions if it uses Direct Addressing with this array to be certain everything works correctly.  You do not need to be concerned.

    Regards,

    David

  • thanks david for your reply, i will remove -mw option.

    regards,

    OL