I am writing routine for Serial WakeupHandler and it sometimes causes soft-reset due to stack overflow. Is it possible to change stack size or to use my own stack during executing my wakeuphandler? How is stack size assigned from PalmOS to applications?

Is it possible to get free stack size? The only function I found which tells something about stack is SysGetStackInfo but it gives me information about total size of stack... I tried this function and it seems that stack in applications is about 4KB and it could be really insufficient...

And one more problem - perhaps with gcc...

I need to get size of part of code.

  // this works wrong
  size=(UInt32)(&EasyTypeHackEnd);
  size-=(UInt32)(&EasyTypeHack);

  // this works right
  uptr=(UInt32)(&EasyTypeHack);
  size=(UInt32)(&EasyTypeHackEnd);
  size-=uptr;

I do not know why I must use two variables...

Thanks.

Hynek Sladky

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

Reply via email to