Sign in

username:

password:



Not a member?

Search code-comp



Search tips

Subscribe to code-comp



code-comp by Keywords

ARM7 | BIOS | Bug | EVM | JTAG | Linker | LOG_printf | McBSP | Profiling | Relocation | RTDX | Simulator | Target | Watch

Ads

Discussion Groups

Discussion Groups | Code-Composer | Code Composer Studio with -mg compile switch(C6x) has problems

Technical discussions about Code Composer Studio.

  

Post a new Thread

Code Composer Studio with -mg compile switch(C6x) has problems - Jim Malone - Jul 26 22:15:00 1999



Hello All,

When compiling with the -mg switch for cl6x (version 3.01 and 2.11 do the
same thing), the TMS320C6000 Optimizing C Compiler User's guide states "When
you combine the -g option and the -o option with the -mg option, all of the
line directives are removed except for the first one and last one." This
causes Code Composer Studio some problems, namely, without line directives,
it can not set profile (or for that matter break/probe) points. Seems
strange to compile with the -mg switch so that you can profile optimized
code and not be able to profile optimized code in Code Composer Studio. You
can tell that Code Composer Studio is lost by looking at mixed C and ASM.
All of the ASM code will be at the top and all of the C code will be at the
bottom instead of mixed.

Yes, I have passed this on to the TI Hotline, but they have not replied
after three days.

I also have tried using the clock function to time critical functions and
get different time values than what Code Composer Studio gives in the
Profile Statistics. Granted this is without the -mg switch and I have tried
both optimized (-g and -o2) and non-optimized (-g). I also have the profile
clock set to the period of the C6701 EVM (133MHz CLKOUT1 or CPU Clock
translates to 7.51ns period roughly). The only thing I haven't changed is
the pipeline adjustment value in the clock setup. And yes the profile clock
is enabled when I profile. I have tried both the Execution Packet and clock
values for the count option.

I am looking at the DSP/BIOS hooks for timing but they use the profiler as
well. The only other option left may be the RTDX hooks which I have not
learned yet(other than the tutorial). So any pointers in this direction
would be great!

Am I missing something? Why are the values from the profiler and the clock
function so different?

TIA for your help!

Jim
<mailto:>

Jim Malone II
Senior Engineer
ComSpace Corporation

(972)-894-0225


Attachment (not stored)
winmail.dat
Type: application/ms-tnef



(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )