Reply by aaac111 May 8, 20082008-05-08
hi rachit,


>How to get stack depth bookkeeping routines(C_SDPBK for 32-BIS and C >$SDPBK for 16-BIS) details?
i have always used my TI dsp with an os(dsp/bios). so i have no idea how to find out this particular bit stack depth data... regards, aps
> >Hi aps, >you haven't misunderstood. I am using CCS v3.1. >As mentioned earlier I am not using any kernel. >I have compiled project with -debug:sdp option and it works fine.here >you have to apply -d"sdp" in build option instead of -debug:sdp. >How to get stack depth bookkeeping routines(C_SDPBK for 32-BIS and C >$SDPBK for 16-BIS) details? > >thanks, >Rachit >
Reply by Rachit May 8, 20082008-05-08
On May 7, 5:54&#4294967295;pm, "aaac111" <aaac...@gmail.com> wrote:
> 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 checkstackusage but again > those are for ccs only and make use of a few dsp/bios APIs. &#4294967295; > > >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. &#4294967295; > > >How to seestackdepth 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...@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 oneRunTimeSupport forStackDepth Profiling.The > >following text mentioned in document. > >The TMS470 compiler provides a debug option to determine the maximum > >stackusage of an application. If the application is compiled with the > >-debug:sdp option, the compiler places a call to astackdepth > >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 maximumstackusage for each function. > >There is a profiled version of therun-timesupport library that can > >be linked when -debug:sdp is turned on. This enables you to determine > >the completestackusage of an application that containsrun-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 seestackdepth bookkeeping routine(C_SDPBK > >for 32-BIS and C$SDPBK for 16-BIS)? > > >Thanks, > >Rachit Shah- Hide quoted text - > > - Show quoted text -
Hi aps, you haven't misunderstood. I am using CCS v3.1. As mentioned earlier I am not using any kernel. I have compiled project with -debug:sdp option and it works fine.here you have to apply -d"sdp" in build option instead of -debug:sdp. How to get stack depth bookkeeping routines(C_SDPBK for 32-BIS and C $SDPBK for 16-BIS) details? thanks, Rachit
Reply by Rachit May 8, 20082008-05-08
On May 7, 5:06&#4294967295;pm, Brad Griffis <bradgrif...@hotmail.com> wrote:
> Rachit wrote: > > On May 6, 4:26 pm, "aaac111" <aaac...@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 oneRunTimeSupport forStackDepth Profiling.The > > following text mentioned in document. > > The TMS470 compiler provides a debug option to determine the maximum > >stackusage of an application. If the application is compiled with the > > -debug:sdp option, the compiler places a call to astackdepth > > 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 maximumstackusage for each function. > > There is a profiled version of therun-timesupport library that can > > be linked when -debug:sdp is turned on. This enables you to determine > > the completestackusage of an application that containsrun-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 seestackdepth bookkeeping routine(C_SDPBK > > for 32-BIS and C$SDPBK for 16-BIS)? > > > Thanks, > > Rachit Shah > > The TMS470 is an ARM7. &#4294967295;It has completely different compilers, etc. &#4294967295;You > cannot use that function on the 54x DSP. &#4294967295;As mentioned before you should > use DSP/BIOS and then look at the Kernel Object Viewer to see yourstack > usage. > > Brad- Hide quoted text - > > - Show quoted text -
Hi Brad, As I have mentioned earlier, I am not using any Kernel on TMS320C54x. I want to check stack usage of individual function. Thanks,
Reply by Randy Yates May 7, 20082008-05-07
"aaac111" <aaac111@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@ieee.org> % '21st Century Man', *Time*, ELO http://www.digitalsignallabs.com
Reply by aaac111 May 7, 20082008-05-07
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...@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 >
Reply by Brad Griffis May 7, 20082008-05-07
Rachit wrote:
> On May 6, 4:26 pm, "aaac111" <aaac...@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
Reply by Rachit May 7, 20082008-05-07
On May 6, 4:26 pm, "aaac111" <aaac...@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
Reply by rajesh May 6, 20082008-05-06
On May 6, 4:23 pm, Rachit <rachi...@gmail.com> wrote:
> On May 6, 4:03 pm, rajesh <getrajes...@gmail.com> wrote: > > > > > On May 6, 4:00 pm, Rachit <rachi...@gmail.com> wrote: > > > > On May 6, 3:15 pm, rajesh <getrajes...@gmail.com> wrote: > > > > > On May 6, 2:57 pm, Rachit <rachi...@gmail.com> wrote: > > > > > > On May 6, 9:38 am, rajesh <getrajes...@gmail.com> wrote: > > > > > > > On May 6, 9:00 am, Rachit <rachi...@gmail.com> wrote: > > > > > > > > On May 5, 6:27 pm, Randy Yates <ya...@ieee.org> wrote: > > > > > > > > > Rachit <rachi...@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...@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
Reply by aaac111 May 6, 20082008-05-06
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 >
Reply by Rachit May 6, 20082008-05-06
On May 6, 4:03&#4294967295;pm, rajesh <getrajes...@gmail.com> wrote:
> On May 6, 4:00 pm, Rachit <rachi...@gmail.com> wrote: > > > > > > > On May 6, 3:15 pm, rajesh <getrajes...@gmail.com> wrote: > > > > On May 6, 2:57 pm, Rachit <rachi...@gmail.com> wrote: > > > > > On May 6, 9:38 am, rajesh <getrajes...@gmail.com> wrote: > > > > > > On May 6, 9:00 am, Rachit <rachi...@gmail.com> wrote: > > > > > > > On May 5, 6:27 pm, Randy Yates <ya...@ieee.org> wrote: > > > > > > > > Rachit <rachi...@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. > > > > > > > -- > > > > > > > % &#4294967295;Randy Yates &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295;% "She has an IQ of 1001, she has a jumpsuit > > > > > > > %% Fuquay-Varina, NC &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295;% &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295;on, and she's also a telephone." > > > > > > > %%% 919-577-9882 &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295;% > > > > > > > %%%% <ya...@ieee.org> &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; % &#4294967295; &#4294967295; &#4294967295; &#4294967295;'Yours Truly, 2095', *Time*, ELO &#4294967295;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