> From: Chi-Yi Lin [mailto:[EMAIL PROTECTED]]
> In the documentation, it says that a running process has a stack
> of size 4K.

Generally true, but you can change the size at build time if needed.

> I'm wondering if it means that there is only one application stack
> and once the application quits, it returns the stack to the system;

Yes, that's how it works.

> or, there could be several application stacks residing in the dynamic
> heap, if an application runs then quits and then later runs again,
> it can reuse its stack allocated last time? 

No, every app gets a fresh stack and heap at every startup.

> the documentation says 40KB of system globals is in the dynamic heap.
> Does this chunk of memory have a fixed address in the dynamic heap?
> I would like to know where system globals are.

It's not necessarily a single chunk, and you don't have access to such
objects anyway.  The OS allocates memory for itself in the heap at various
times when your app is running.  In addition, there is a separate fixed size
block of system globals that exists outside the heap at a certain fixed
address, but your code is not allowed to poke at this region of memory
either.  You need to use documented APIs.

> If you have any clue on these topics, it is most welcome to drop me a
> line. Your help is deeply appreciated.

Are you trying to accomplish something specific here?  If you post details,
you should get solutions that don't involve "hacking".

-slj-


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