DSPRelated.com
Forums

Compiler optimization, was about strip symbolic information in c6x linker

Started by Thorn, Jon February 21, 2003
Mos,

The reason that the result of the second compile is slower is probably that
the compiler is doing optimization at the file level.

Try adding the -pm option to your list along with the -o3 and see if results
are not better. The -pm option allows the compiler to have project level
visibility by building a single temporary source file. Best Regards,
Jon Thorn
TI -----Original Message-----
From: mohammed samdani [mailto:]
Sent: Friday, February 21, 2003 12:20 PM
To: Jeff Brower; Tao Wang
Cc:
Subject: Re: [c6x] about strip symbolic information in c6x linker hi,

I am woring on TMS320c6201 DSP processor uning CCS V2.

I am currently writing a program on the 6201 EVM. I
have encountered a problem which I need some help
with. There is a function in my project called
rem_dc() which is called by main(). This function is
in the same C file as main().

This is my 'C' file where I call my funtion rem_dc
( ). #include<stdio.h>
main()
{

rem_dc ( ); // call my function

}

rem_dc( )
{

} When I profiled the function (rem_dc( ) ), it took
3500 clock cycles (with -o3 potimization.).

I then moved rem_dc( ) to a separate file in the the
project. From the main file, I called the fuction
rem_dc ( ). I then ran the program (again with -o3
optimization). rem_dc() took 23,000 cycles.
Why is there such a large difference?

All my sections(data, program,etc) in the.cmd file
are in internal program memory. Thanks
Mos
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com _____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to

To Post: Send an email to

To Leave: Send an email to

Archives: http://www.yahoogroups.com/group/c6x

Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/