DSPRelated.com
Forums

When I try to build a .c source file within -o2 , the program died~

Started by ahra...@yahoo.com.cn December 6, 2007
Hey!~guys.

My project is under ccs3.1, I use xds560 PCI-JTAG emulator.
The program runs pretty well, in which all the .c source file I can build with -o3 option.

Except for one file, after I built this bad.c source file within -o2 and run, the program died (fall into endless running but it is supposed to end)~
When I halt the program and check the disassembly, it stops within the lable: MEMCPY。
Indeed in this bad.c there is several call to MEMCPY.
But in other .c files there are also calling to MEMCPY and -o3 works well.
I am quite confused.
Any help is strongly appreciated.