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.

location of local variables during compile

Other Parts Discussed in Thread: TMS320C6713B

I'm not sure which forum to contact.
So I ask here.

I wonder in which memory region the local variable is located if I select "size most critical" or "speed most critical" in the compiler optimization options.

In some cases, it is located in "register". Therefore, there are cases where the value of the local variable is changed to an unwanted value while ISR is performed first.

So, I am wondering if there is a document that can refer to how the location of local variables is allocated according to optimization options during the compilation process.

We look forward to your help.

  • Hello Nho, 

    Please provide more information. 

    What processor are you using?

    What complier are you using?

    Please provide as much detail as possible.

    Thank you,

    ~Leonard 

  • I am using CCS3.3.   Processor is TMS320C6713B

    I don't know exactly which compiler version I'm using.

    In CCS7, a similar phenomenon was confirmed in TI V7.4.4 version.

    Thank you..

  • Hello Nho,

    Please note that this part has limited design support as per the product page: https://www.ti.com/product/TMS320C6713B . We no longer have hardware or software expertise for this part in our team. If you are making a new design, we suggest moving to a newer part like the C474x (if you need pointers for which TI parts might be a good fit for your design, let us know).

    I skimmed through the Processors wiki archive, but I did not see any pages with C671 in the name that seemed like they would be helpful.

    If you have more information (e.g., if you are using a specific software package, if you are using a specific compiler, etc), then I can search to see if there are any archived documents that seem to be about those subjects.

    Regards,

    Nick