But how to find the disassembly...

...if you're using codewarrior, I believe there is a menu item for it.

...if you're using gcc, I believe that you can use the "-msave-temps" (or 
something close to that) to get the compiler to save the ".s" files.  You 
should be able to find the LINK instruction there.

If you want more, you can always use the "PalmDebugger" application that 
Palm puts in the "Unsupported" folder of the SDK...course, that needs a lot 
more explanation.

---

--On Wednesday, June 7, 2000 11:26 AM -0700 "Scott L. Johnson" 
<[EMAIL PROTECTED]> wrote:

>> From: Adam Wozniak [mailto:[EMAIL PROTECTED]]
>> Is there any way to look at the disassembly for a function
>> and determine how much stack space it chews up?
>
> Yes.  Look for the 'link a6,#-n' instruction at the top of the function.
> The 'n' value is the size of the stack frame.
>
> (Of course this requires a6 frame generation to be enabled in the project,
> but it should be for debugging anyway.)
>
> -slj-
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to