Hi,
Compiler: CCSv4.0.2.01003 (32K Object Code Limited MCU Core), Target: TMS320F2812
Project Status: Migrated from CCSv3.3
I'm posting another thread sperately here. ( http://e2e.ti.com/support/development_tools/f/81/p/3136/10826.aspx#10826)
Below (in blue) is the portion of comments that I had posted in the above thread.
====================================================================================================================================
1. Yes it seems like Build-Time-Optimization is causing the problem. But in Build-Options/Settings optimization is NULL. Actually this is a v3.3 migrated project in which the optimization was NULL. I see some more check boxes in v4.0 Build/Link-Settings. I was keeping the Build and Linker Settings as such as the migration resulted execpt for the modifications suggested in 'Known Issues' with migration in wiki. Can anyone explain specifically the different levels of optimizations in v4.0 and where are they configured?
A snippet of my problem is:
void LocalFun(void)
{
Uint16 t1, t2, t3;
- - -
for (t1 = 0; t1 < 256; t1++)
{
do some calc with t2;
do some calc with t3;
}
}
In the above piece of code, in most cases, t2 and t3 could be viewed in the 'Local Watch' window. But not t1, for which its showing 'identifier not found' in value column. t1 is only used for loop-indexing. Seems like t1 got optimized out.
Which specific optimization might be causing this? How this type of optimization could be disabled?
====================================================================================================================================
1. I still have problem seeing values of local variables in 'Local' watch window. It seems result of some optimization: because some local variables within a function could be seen and some within the same function could not. Does anyone faced a similar problem?
2. Has there a doc similar to spru514c (TMS320C28x Optimizing C/C++ Compiler) for CCSv4?
3. Can anyone explain in detail how to configure 'CCSv4 > C/C++ Build > C2000 Compiler and C200 Linker' in order to fully turn-off optimization?
Thanks for any help
-Sinoj