Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI C/C++ Compiler
Hi
CCS: 5.3
DSP: C6455
OS: win7
SYS/BIOS: 7.4.1
I have some problems when I develope my program that I don't understand why they have happened.
I could solve them by try and errors but I didn't understand why they happened and what was the root of problems.
When I have a performance problem with my code (speed up) I increase the performance optimization level to -O3. When I profile the code I can see the code performs much faster but
I have several "*.c" files that I change the optimization level of some of them so in my project I have files with different optimization levels.
Q1
How should I use optimization levels for my files?
I have some strange problems that I think they are related to compiler problems that I explained below:
In my memory map, I reserved some L2 memory for HPI communication and other extra memory space (I named IRAM) is belong to OS(OS is responsible to fit all memory segments in IRAM section).
Sometimes when I declared a global variable only(without using in the code), after compile and load the program, my program didn't work!!! and there isn't any memory error!!!
or sometimes when I comment some part of code my program didn't work! again!! (the commented part didn't have an effect on my code, for example, I commented my logger peace of code ).
I can't interpret why those problems happened, I thought the problems related to the compiler.
Q2:
please, explain why those problems happened and how I must solve them?
Best Regards