On Mon, Mar 18, 2002 at 11:12:06AM -0600, Ben Combee wrote:
>> On Mon, Mar 18, 2002 at 04:08:27PM -0000, Russell K Bulmer wrote:
>>> So, does anyone know of a way in C/C++ to get the stack pointer?
[...]
> Or, in CodeWarrior compiler speak,
>
> UInt32 BringMeTheHeadOfAlfredoStackPointer(void) = 0x200E;
Well, if we're going to regress to assembly language...
void *el_stacko;
asm ("move.l %%sp,%0" : "=r" (el_stacko));
...seems somehow more comprehensible than working out the hex values
yourself. But perhaps it's a matter of taste. :-)
John "C9 = TAN = ret"
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/