DSPRelated.com
Forums

RE: One Qn regding Speech Codecs

Started by Anand Pradhan March 21, 2006
Thanks for prompt replies, Mike and Suresh !

Here are some things more clarified !

I am presently using c6416 DSP, and there is only one channel of EVRC codec
running
ie EVRC Encode - EVRC Decode

The optimized code is smaller than the unoptimized code. There is neither
a warning that code is having stack overflow problem whenever it runs.

Will you please explain, Mike, as what to do about the last solution you
suggested ?
ie " the required stack depth may be greater for debug vs. optimized code "

Because the stack once allocated will be final for all the versions,
Debug and Release modes.

Awaiting your reply.

Thanks.

Regards,
Anand.
----------------------------
Anand Pradhan,
----------------------------
-----Original Message-----
From: c... [mailto:c...]On Behalf Of Mike
Dunn
Sent: Tuesday, March 14, 2006 8:00 PM
To: a...@intersolutions.stpn.soft.net; Suresh Kumar N;
c...
Subject: RE: [c6x] One Qn regding Speech Codecs
Hello Anand,

See comments below.

--- Anand Pradhan
wrote:

>
> Hi Suresh,
>
> Thanks for the reply.
>
> There are lot many structs. and all are aligned to
> either short or int
> data type. and regarding the global variables, there
> are some const. arrays
> declared
> which will reside in CONST section of memory when
> ported on DSP. Is there
> any other
> problem making this to happen? I have already used
> intrinsics, preprocessor
> directives,
> memory disambiguation, speculative execuition of
> loops etc.supported by c64x
> to
> optimize the code.
>
> Let me know if you got some clue.
>
> Thanks a lot.
>
> Regards,
> ~ Anand.
> -----Original Message-----
> From: Suresh Kumar N
> [mailto:s...@tataelxsi.co.in]
> Sent: Tuesday, March 14, 2006 9:23 AM
> To: a...@intersolutions.stpn.soft.net;
> c...
> Subject: RE: [c6x] One Qn regding Speech Codecs
> Hi anand,
> Is there any structures in ur project? If it is
> check the memory alignment
> of all members in that stuctures and check for the
> global variables.
> regards,
> Suresh
>
> -----Original Message-----
> From: c...
> [mailto:c...]On Behalf Of Anand
> Pradhan
> Sent: Monday, March 13, 2006 7:28 PM
> To: c...
> Subject: [c6x] One Qn regding Speech Codecs
>
> Hi All,
>
> I am facing a strange problem with CCS 3.1.
> Presently working on EVRC Speech Codec.
> I am getting bit-exactness on optimized code ie with
> using options "-o3" &
> "-pm -op3".
> but the bit-exactness loses when i make the
> optimization levels to "none".
>
> need explanations on this ....
A strange problem indeed - it is usually the other way
around [ie, problems with the optimized version]
Which DSP are you using??
Is there anything else running, or is this just the
codec??
Is the generated code for 'none' smaller or larger
than the optimized code??
Could you be running out of stack space?? If your
code calls 'small functions that call small functions'
or calls some functions only once, the required stack
depth may be greater for debug vs. optimized code.

mikedunn
>
> reply.
>
> Regards,
> Anand.
>