From: rajesh on
On May 6, 2:57 pm, Rachit <rachi...(a)gmail.com> wrote:
> On May 6, 9:38 am, rajesh <getrajes...(a)gmail.com> wrote:
>
>
>
> > On May 6, 9:00 am, Rachit <rachi...(a)gmail.com> wrote:
>
> > > On May 5, 6:27 pm, Randy Yates <ya...(a)ieee.org> wrote:
>
> > > > Rachit <rachi...(a)gmail.com> writes:
> > > > > Hello,
> > > > > I am working on TMS320C54x platform.I am using Code Composer Studio
> > > > > 3.1 to develop application.
> > > > > How to check run time stack usage on CCS?Is there any other utility
> > > > > for this?
>
> > > > Hi Rachit,
>
> > > > There's a very simple technique to do this. In your initialization
> > > > (before the stack is first used), write some known bit pattern to the
> > > > entire stack, like 0xDEAD. Then after running your application for some
> > > > time in a representative or worst-case operating scenario, halt the
> > > > debugger, examine the stack memory, and see how many 0xDEADs are
> > > > remaining.
> > > > --
> > > > % Randy Yates % "She has an IQ of 1001, she has a jumpsuit
> > > > %% Fuquay-Varina, NC % on, and she's also a telephone."
> > > > %%% 919-577-9882 %
> > > > %%%% <ya...(a)ieee.org> % 'Yours Truly, 2095', *Time*, ELO http://www.digitalsignallabs.com
>
> > > Hi Randy,
> > > Thanks for guiding me.This is one way to track stack usage.
> > > Actually I want to check for stack usage by individual function at run
> > > time?
>
> > > Thanks,
> > > Rachit Shah
>
> > What do you mean by run time.We generally measure the stack size for a
> > worst case scenario.
>
> > regards
> > Rajesh.D- Hide quoted text -
>
> > - Show quoted text -
>
> Hi Rajesh,
> Rut time means without stop the running application.I want to check
> stack usage of individual function.There is one sdp470.exe available
> for Static Stack Depth Profiler. Do you know about this?How to use
> this on CCS?
>
> Thanks,
> Rachit Shah

If you want to check the stack usage of a individual function
just open the compiler generated code for that function and check for
the 'link'(in ADI..i dont know wat its called in TI) value.
From: Rachit on
On May 6, 3:15 pm, rajesh <getrajes...(a)gmail.com> wrote:
> On May 6, 2:57 pm, Rachit <rachi...(a)gmail.com> wrote:
>
>
>
>
>
> > On May 6, 9:38 am, rajesh <getrajes...(a)gmail.com> wrote:
>
> > > On May 6, 9:00 am, Rachit <rachi...(a)gmail.com> wrote:
>
> > > > On May 5, 6:27 pm, Randy Yates <ya...(a)ieee.org> wrote:
>
> > > > > Rachit <rachi...(a)gmail.com> writes:
> > > > > > Hello,
> > > > > > I am working on TMS320C54x platform.I am using Code Composer Studio
> > > > > > 3.1 to develop application.
> > > > > > How to check run timestackusageon CCS?Is there any other utility
> > > > > > for this?
>
> > > > > Hi Rachit,
>
> > > > > There's a very simple technique to do this. In your initialization
> > > > > (before thestackis first used), write some known bit pattern to the
> > > > > entirestack, like 0xDEAD. Then after running your application for some
> > > > > time in a representative or worst-case operating scenario, halt the
> > > > > debugger, examine thestackmemory, and see how many 0xDEADs are
> > > > > remaining.
> > > > > --
> > > > > %  Randy Yates                  % "She has an IQ of 1001, she has a jumpsuit
> > > > > %% Fuquay-Varina, NC            %            on, and she's also a telephone."
> > > > > %%% 919-577-9882                %
> > > > > %%%% <ya...(a)ieee.org>           %        'Yours Truly, 2095', *Time*, ELO  http://www.digitalsignallabs.com
>
> > > > Hi Randy,
> > > > Thanks for guiding me.This is one way to trackstackusage.
> > > > Actually I want to check forstackusageby individual function at run
> > > > time?
>
> > > > Thanks,
> > > > Rachit Shah
>
> > > What do you mean by run time.We generally measure thestacksize for a
> > > worst case scenario.
>
> > > regards
> > > Rajesh.D- Hide quoted text -
>
> > > - Show quoted text -
>
> > Hi Rajesh,
> > Rut time means without stop the running application.I want to check
> >stackusageof individual function.There is one sdp470.exe available
> > for StaticStackDepth Profiler. Do you know about this?How to use
> > this on CCS?
>
> > Thanks,
> > Rachit Shah
>
> If you want to check thestackusageof a individual function
> just open the compiler generated code for that function and check for
> the 'link'(in ADI..i dont know wat its called in TI) value.- Hide quoted text -
>
> - Show quoted text -

Hi Rajesh,
I didn't get what eaxectly you want me to do?
You mean to say to see map file..right?or else?

Thanks,
Rachit
From: rajesh on
On May 6, 4:00 pm, Rachit <rachi...(a)gmail.com> wrote:
> On May 6, 3:15 pm, rajesh <getrajes...(a)gmail.com> wrote:
>
>
>
> > On May 6, 2:57 pm, Rachit <rachi...(a)gmail.com> wrote:
>
> > > On May 6, 9:38 am, rajesh <getrajes...(a)gmail.com> wrote:
>
> > > > On May 6, 9:00 am, Rachit <rachi...(a)gmail.com> wrote:
>
> > > > > On May 5, 6:27 pm, Randy Yates <ya...(a)ieee.org> wrote:
>
> > > > > > Rachit <rachi...(a)gmail.com> writes:
> > > > > > > Hello,
> > > > > > > I am working on TMS320C54x platform.I am using Code Composer Studio
> > > > > > > 3.1 to develop application.
> > > > > > > How to check run timestackusageon CCS?Is there any other utility
> > > > > > > for this?
>
> > > > > > Hi Rachit,
>
> > > > > > There's a very simple technique to do this. In your initialization
> > > > > > (before thestackis first used), write some known bit pattern to the
> > > > > > entirestack, like 0xDEAD. Then after running your application for some
> > > > > > time in a representative or worst-case operating scenario, halt the
> > > > > > debugger, examine thestackmemory, and see how many 0xDEADs are
> > > > > > remaining.
> > > > > > --
> > > > > > % Randy Yates % "She has an IQ of 1001, she has a jumpsuit
> > > > > > %% Fuquay-Varina, NC % on, and she's also a telephone."
> > > > > > %%% 919-577-9882 %
> > > > > > %%%% <ya...(a)ieee.org> % 'Yours Truly, 2095', *Time*, ELO http://www.digitalsignallabs.com
>
> > > > > Hi Randy,
> > > > > Thanks for guiding me.This is one way to trackstackusage.
> > > > > Actually I want to check forstackusageby individual function at run
> > > > > time?
>
> > > > > Thanks,
> > > > > Rachit Shah
>
> > > > What do you mean by run time.We generally measure thestacksize for a
> > > > worst case scenario.
>
> > > > regards
> > > > Rajesh.D- Hide quoted text -
>
> > > > - Show quoted text -
>
> > > Hi Rajesh,
> > > Rut time means without stop the running application.I want to check
> > >stackusageof individual function.There is one sdp470.exe available
> > > for StaticStackDepth Profiler. Do you know about this?How to use
> > > this on CCS?
>
> > > Thanks,
> > > Rachit Shah
>
> > If you want to check thestackusageof a individual function
> > just open the compiler generated code for that function and check for
> > the 'link'(in ADI..i dont know wat its called in TI) value.- Hide quoted text -
>
> > - Show quoted text -
>
> Hi Rajesh,
> I didn't get what eaxectly you want me to do?
> You mean to say to see map file..right?or else?
>
> Thanks,
> Rachit

not the map file, the compiler generated assembly code.
in ADI its called .s file i am not sure wat its called in TI.
From: Rachit on
On May 6, 4:03 pm, rajesh <getrajes...(a)gmail.com> wrote:
> On May 6, 4:00 pm, Rachit <rachi...(a)gmail.com> wrote:
>
>
>
>
>
> > On May 6, 3:15 pm, rajesh <getrajes...(a)gmail.com> wrote:
>
> > > On May 6, 2:57 pm, Rachit <rachi...(a)gmail.com> wrote:
>
> > > > On May 6, 9:38 am, rajesh <getrajes...(a)gmail.com> wrote:
>
> > > > > On May 6, 9:00 am, Rachit <rachi...(a)gmail.com> wrote:
>
> > > > > > On May 5, 6:27 pm, Randy Yates <ya...(a)ieee.org> wrote:
>
> > > > > > > Rachit <rachi...(a)gmail.com> writes:
> > > > > > > > Hello,
> > > > > > > > I am working on TMS320C54x platform.I am using Code Composer Studio
> > > > > > > > 3.1 to develop application.
> > > > > > > > How to check run timestackusageon CCS?Is there any other utility
> > > > > > > > for this?
>
> > > > > > > Hi Rachit,
>
> > > > > > > There's a very simple technique to do this. In your initialization
> > > > > > > (before thestackis first used), write some known bit pattern to the
> > > > > > > entirestack, like 0xDEAD. Then after running your application for some
> > > > > > > time in a representative or worst-case operating scenario, halt the
> > > > > > > debugger, examine thestackmemory, and see how many 0xDEADs are
> > > > > > > remaining.
> > > > > > > --
> > > > > > > %  Randy Yates                  % "She has an IQ of 1001, she has a jumpsuit
> > > > > > > %% Fuquay-Varina, NC            %            on, and she's also a telephone."
> > > > > > > %%% 919-577-9882                %
> > > > > > > %%%% <ya...(a)ieee.org>           %        'Yours Truly, 2095', *Time*, ELO  http://www.digitalsignallabs.com
>
> > > > > > Hi Randy,
> > > > > > Thanks for guiding me.This is one way to trackstackusage.
> > > > > > Actually I want to check forstackusageby individual function at run
> > > > > > time?
>
> > > > > > Thanks,
> > > > > > Rachit Shah
>
> > > > > What do you mean by run time.We generally measure thestacksize for a
> > > > > worst case scenario.
>
> > > > > regards
> > > > > Rajesh.D- Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > > Hi Rajesh,
> > > > Rut time means without stop the running application.I want to check
> > > >stackusageof individual function.There is one sdp470.exe available
> > > > for StaticStackDepth Profiler. Do you know about this?How to use
> > > > this on CCS?
>
> > > > Thanks,
> > > > Rachit Shah
>
> > > If you want to check thestackusageof a individual function
> > > just open the compiler generated code for that function and check for
> > > the 'link'(in ADI..i dont know wat its called in TI) value.- Hide quoted text -
>
> > > - Show quoted text -
>
> > Hi Rajesh,
> > I didn't get what eaxectly you want me to do?
> > You mean to say to see map file..right?or else?
>
> > Thanks,
> > Rachit
>
> not the map file, the compiler generated assembly code.
> in ADI its called .s file i am not sure wat its called in TI.- Hide quoted text -
>
> - Show quoted text -

Hi Rajesh,
Thanks, I will check it.
What's mean by ADI?

Thanks,
Rachit
From: aaac111 on
hi rachit,

If you are using CCS then there is a simpler way which might be helpful.
at runtime click the "Kernel/object view" under the DSP/BIOS menu. The
window which opens will give you information about the tasks that are in
your code and their stack usage.

regards,
aps


>Hello,
>I am working on TMS320C54x platform.I am using Code Composer Studio
>3.1 to develop application.
>How to check run time stack usage on CCS?Is there any other utility
>for this?
>
>Thanks,
>Rachit Shah
>