Local variables should be allocated on the stack by default; unless they are
static.
Have you specified any modifiers on the local variables' definitions?

Cheers,
James.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jay
Shroff
Sent: Tuesday, 10 July 2001 09:51
To: Palm Developer Forum
Subject: Codewarrior - allocating locals on stack


Is there a way to tell codewarrior to allocate locals
in a function on the stack?

I am trying to write system patch and move it into
heap, but seems like the code that codewarrior
generates is allocating local vars in a data segment
and not on the stack.

I am hoping there is a pragma that allows me to
specify location of locals.

Jay

--
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