Brian Paul <[EMAIL PROTECTED]> wrote:

> I considered this project myself when I got my Palm Pilot. However,
> as I understand it, the system is limited to 32KB code and data
> segments.  Mesa's code is much larger and often allocates buffers
> larger than 32KB. 

Not to mention that huge amounts of stack space that Mesa gobbles up. 
I spent three days this week tracking down problems that showed up in 
the latest Mesa sources when running under DOS and QNX with texture 
mapping. It turns out that these environments do not support growable 
stacks, and hence we need to pre-allocate in advance the amount of 
stack space that we need at link time. I was using a 50K stack. Turns 
out that in mesa there are a number of places where a 19K temporary 
variable is used on the stack for rendering purposes. Adding up all 
the stack space equalled a minimum stack of 60K before the program 
would start running.

I am now using a 200K stack to be safe, but Mesa certainly does chew 
through the memory!

Regards,

+---------------------------------------------------------------+
|   SciTech Software - Building Truly Plug'n'Play Software!     |
+---------------------------------------------------------------+
| Kendall Bennett          | Email: [EMAIL PROTECTED]    |
| Director of Engineering  | Phone: (530) 894 8400              |
| SciTech Software, Inc.   | Fax  : (530) 894 9069              |
| 505 Wall Street          | ftp  : ftp.scitechsoft.com         |
| Chico, CA 95928, USA     | www  : http://www.scitechsoft.com  |
+---------------------------------------------------------------+



_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to