From: rajesh on
On May 6, 4:23 pm, Rachit <rachi...(a)gmail.com> wrote:
> 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

Analog Devices DSP's
From: Rachit on
On May 6, 4:26 pm, "aaac111" <aaac...(a)gmail.com> wrote:
> 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 theirstackusage.
>
> regards,
> aps
>
>
>
> >Hello,
> >I am working on TMS320C54x platform.I am using Code Composer Studio
> >3.1 to develop application.
> >How to checkruntimestackusage on CCS?Is there any other utility
> >for this?
>
> >Thanks,
> >Rachit Shah- Hide quoted text -
>
> - Show quoted text -

Hi aps,
Thanks for guiding me.
I am not using any OS with TMS320.
I came across one Run Time Support for Stack Depth Profiling.The
following text mentioned in document.
The TMS470 compiler provides a debug option to determine the maximum
stack usage of an application. If the application is compiled with the
-debug:sdp option, the compiler places a call to a stack depth
bookkeeping routine (C_SDPBK for 32-BIS and C$SDPBK for 16-BIS),
immediately after the frame has been allocated for a function. This
bookkeeping routine tracks the maximum stack usage for each function.
There is a profiled version of the run-time support library that can
be linked when -debug:sdp is turned on. This enables you to determine
the complete stack usage of an application that contains run-time
support utilities (such as I/O utilities). There is an overhead
associated with the -debug:sdp option. The link register (LR) is
always saved when this option is turned on, since all functions in the
application call the bookkeeping routine.

How to use this?Howw to see stack depth bookkeeping routine(C_SDPBK
for 32-BIS and C$SDPBK for 16-BIS)?

Thanks,
Rachit Shah
From: Brad Griffis on
Rachit wrote:
> On May 6, 4:26 pm, "aaac111" <aaac...(a)gmail.com> wrote:
>> 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 theirstackusage.
>>
>> regards,
>> aps
>>
>>
>>
>>> Hello,
>>> I am working on TMS320C54x platform.I am using Code Composer Studio
>>> 3.1 to develop application.
>>> How to checkruntimestackusage on CCS?Is there any other utility
>>> for this?
>>> Thanks,
>>> Rachit Shah- Hide quoted text -
>> - Show quoted text -
>
> Hi aps,
> Thanks for guiding me.
> I am not using any OS with TMS320.
> I came across one Run Time Support for Stack Depth Profiling.The
> following text mentioned in document.
> The TMS470 compiler provides a debug option to determine the maximum
> stack usage of an application. If the application is compiled with the
> -debug:sdp option, the compiler places a call to a stack depth
> bookkeeping routine (C_SDPBK for 32-BIS and C$SDPBK for 16-BIS),
> immediately after the frame has been allocated for a function. This
> bookkeeping routine tracks the maximum stack usage for each function.
> There is a profiled version of the run-time support library that can
> be linked when -debug:sdp is turned on. This enables you to determine
> the complete stack usage of an application that contains run-time
> support utilities (such as I/O utilities). There is an overhead
> associated with the -debug:sdp option. The link register (LR) is
> always saved when this option is turned on, since all functions in the
> application call the bookkeeping routine.
>
> How to use this?Howw to see stack depth bookkeeping routine(C_SDPBK
> for 32-BIS and C$SDPBK for 16-BIS)?
>
> Thanks,
> Rachit Shah

The TMS470 is an ARM7. It has completely different compilers, etc. You
cannot use that function on the 54x DSP. As mentioned before you should
use DSP/BIOS and then look at the Kernel Object Viewer to see your stack
usage.

Brad
From: aaac111 on

hi rachit,

i think i misunderstood your question. The solution whcih i had sent
earlier is *only* for ccs. that is ,if you are not using ccs my solution
will not be of any use. there are other ways check stack usage but again
those are for ccs only and make use of a few dsp/bios APIs.

>I am not using any OS with TMS320...
i am not sure if TMS320 works without an OS. The DSP/BIOS itself is an OS.


>The TMS470 compiler provides a debug option...
do you mean a particular compiler for TMS470 target? are you using ccs or
not?

>How to use this?
you will have to compile your code with the option "-debug:sdp" as given
in the text extract. depends on the compiler options of the compiler whcih
you are using.

>How to see stack depth bookkeeping routine(C_SDPBK
for 32-BIS and C$SDPBK for 16-BIS)?
the book keeping routine is called by the compiler. you will have to read
the text to find out how to get the data which this routine would
accumulate from the funcitons.

regards,
aps




>On May 6, 4:26 pm, "aaac111" <aaac...(a)gmail.com> wrote:
>> 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 theirstackusage.
>>
>> regards,
>> aps
>>
>>
>>
>> >Hello,
>> >I am working on TMS320C54x platform.I am using Code Composer Studio
>> >3.1 to develop application.
>> >How to checkruntimestackusage on CCS?Is there any other utility
>> >for this?
>>
>> >Thanks,
>> >Rachit Shah- Hide quoted text -
>>
>> - Show quoted text -
>
>Hi aps,
>Thanks for guiding me.
>I am not using any OS with TMS320.
>I came across one Run Time Support for Stack Depth Profiling.The
>following text mentioned in document.
>The TMS470 compiler provides a debug option to determine the maximum
>stack usage of an application. If the application is compiled with the
>-debug:sdp option, the compiler places a call to a stack depth
>bookkeeping routine (C_SDPBK for 32-BIS and C$SDPBK for 16-BIS),
>immediately after the frame has been allocated for a function. This
>bookkeeping routine tracks the maximum stack usage for each function.
>There is a profiled version of the run-time support library that can
>be linked when -debug:sdp is turned on. This enables you to determine
>the complete stack usage of an application that contains run-time
>support utilities (such as I/O utilities). There is an overhead
>associated with the -debug:sdp option. The link register (LR) is
>always saved when this option is turned on, since all functions in the
>application call the bookkeeping routine.
>
>How to use this?Howw to see stack depth bookkeeping routine(C_SDPBK
>for 32-BIS and C$SDPBK for 16-BIS)?
>
>Thanks,
>Rachit Shah
>

From: Randy Yates on
"aaac111" <aaac111(a)gmail.com> writes:
> [...]
>>I am not using any OS with TMS320...
> i am not sure if TMS320 works without an OS.

I can assure you it does, assuming that "TMS320" means any of the family
of several products from TI. I've used processors in that family more
often without an OS than with.
--
% Randy Yates % "Though you ride on the wheels of tomorrow,
%% Fuquay-Varina, NC % you still wander the fields of your
%%% 919-577-9882 % sorrow."
%%%% <yates(a)ieee.org> % '21st Century Man', *Time*, ELO
http://www.digitalsignallabs.com