On Sat, 2 Jun 2001, Pablo Manalastas wrote:

> Can you have initialized globals?  Something like
> ...
> Everytime (is) I use intialized globals, the Palm emulator
> spews a lot of errors/warnings about accessing memory that
> belongs to some Manager or another.  Help!

I discovered my error, and it has nothing to do with initialized
globals.  "Rhodes and McKeehan" states that (call-stack + local-vars)
can not exceed 4K, and (app-globals + dynamic-alloc-mem) can not
exceed 36K (for sdk-3.5)  I wrote a recursive-descent predictive parser
which was using call-stack in excess of 4K, and my globals (initialized
and not) was exceeding 36K.  So I just rewrote my parser:  I removed
the recursive functions and replaced with programmer-implemented
stack (a tiny stack), and did a hysterectory on my globals.  Now
my program works like a breeze.

Pablo Manalastas

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to