Re: speeding up my runtime on a c6713.



Are you writing a program that utilizes the TI DSP BIOS, or just runs
straight on the processor with no BIOS?

Are you using all 256k of DSP ram, or have you reserved up to 64k of
it for cache, and possibly enabled the cache controller?

How many of your variables are automatic / stack variables, vs how
many are global?

I believe the pragma before any variables you want to label for a
different section is #pragma DATA_SECTION("sectionname") but I don't
have my compiler in front of me so I can't be sure. If that's correct,
then it goes along with #pragma CODE_SECTION("othersectionname").
Take note that the C++ does not declare the variable in the pragma,
while the C version does.

On Apr 28, 1:41 pm, jleslie48 <j...@xxxxxxxxxxxxxxxxxx> wrote:
I'm running way too slow, but I know I've done a few things
inefficiently on in my C program.

1) I ran out of IRAM memory so I moved all my variables to ERAM.
What did this cost me?
1A) How can I pick and choose where in memory my C++ variables
reside?

2) instead of using 'float variablea;" I used 'double variablea;'
what did this cost me and what can I expect by changing all my
variables to float (32 bit vs 64 bit.) ?

3) How else can I effect the runtime of my program, I see there is a
clock properties, setting, I know by removing all my fprintf's I pick
up save some 20% of the runtime, What about switching from debug to
release mode, or something else I haven't considered?


.