Re: Run Time Stack Usage



On May 7, 5:54 pm, "aaac111" <aaac...@xxxxxxxxx> 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.  

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 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...@xxxxxxxxx> 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
.



Relevant Pages

  • Re: Run Time Stack Usage
    ... earlier is *only* for ccs. ... there are other ways check stack usage but again ... do you mean a particular compiler for TMS470 target? ... bookkeeping routine tracks the maximum stack usage for each function. ...
    (comp.dsp)
  • Re: C Compiler comparison for PIC18?
    ... >> I've done commercial products using the CCS PCH compiler. ... >> some projects to C18 to see how it stacks up. ... >problem where high ISRs corrupt some registers on exit from the high ISR ...
    (comp.arch.embedded)
  • Re: Which PIC18 C Compiler?
    ... >> using the MPLAB debugger and assembler. ... >series the HiTech ones beats the pants off the CCS compiler, ...
    (sci.electronics.design)
  • Re: C Compiler comparison for PIC18?
    ... >> I've done commercial products using the CCS PCH compiler. ... >> some projects to C18 to see how it stacks up. ... And then ISR performance is a joke. ...
    (comp.arch.embedded)
  • Re: Which PIC18 C Compiler?
    ... >> using the MPLAB debugger and assembler. ... >series the HiTech ones beats the pants off the CCS compiler, ...
    (comp.arch.embedded)