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.

Using libraries without debug symbolics

Other Parts Discussed in Thread: TMS570LS3137

Hi,

TMS570LS3137, Code Composer Studio Version: 5.2.1.00018, Compiler TI v5.0.2

I have problem with library without debug symbols:

1. When i build a library with the Debugging model: Full symbolyc debug (--symdebug:dwarf, -g) the application run perfect and without problem.

 -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -g --include_path="C:/ti/ccsv5/tools/compiler/tms470_5.0.2/include"  --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed

2. When i build the library without the Debugging symbols the application crash from time to time.

-mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi --include_path="C:/ti/ccsv5/tools/compiler/tms470_5.0.2/include"  --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed

Any idea how to use libraries without debug symbolic?  

Regards,

  • The big difference between #1 and #2 is the amount of compiler optimization.  With #1, due to -g, all optimization is disabled, which is the same as using the option --opt_level=off.  With #2, due to no -g, optimization is set to level 3, which is the same as using the option --opt_level=3.  

    One workaround is to trying changing the optimization level.  You can explicitly use -opt_level=n, where n can be 0-4.  We know level 3 is a problem, so don't use 4 either.  

    Ideally, you find the root cause of the problem.  While it is possible there is some compiler bug here, that is unlikely.  It is more likely that enabling optimization has uncovered some bug in your source.  To find it, you could try disabling optimization on one file at a time.  If disabling optimization for one particular file causes things to work, then you know that file contains the problem.  

    Thanks and regards,

    -George