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.

function parameter passing error when using optimization


when i close the optimization level and set it 'off'. My function can get correct result .
However , after i set the optimization level at '1', my function can not get correct result .
after i stepped into the funuction . i found a problem .
the parameter is a structure and it definitely be passed the function . there is a
local variable in the function and I assigned the parameter to it .
at this time ,the localb bariable's value is not the same as the parmater .
thers is no *.cmd file and *.cfg file in my project and i run it under simulator . the DSP is 6678.

hwo could this problem appear? how to fix this problem? thanks

  • Hi,

    Please post you query in the following forums to get fast response from the experts.

    If your query is related to BIOS(.cfg), Post to TI-RTOS forum.

    http://e2e.ti.com/support/embedded/tirtos/default.aspx

    If your query is related to optimization, Post to TI Compiler forum.

    http://e2e.ti.com/support/development_tools/compiler/default.aspx