On Mon, 7 Jan 2002, Ben Combee wrote:

> > I'm porting a rather large application by PalmOS standards -- it has
> > _thousands_ of methods, and approximately 450 source *.c files.
> 
> Are these true C source files or C++ files?

They are true C source files, the C++ compiler is turned off.

> Right -- these globals in the expanded segment include your virtual
> tables and many of the tables used for exception handling.
> Unfortunately, the shipping verison of CW Palm V8 doesn't show the
> expanded data sections layout in the link map.  A version of the linker
> that outputs that should be part of the 8.2 patch, currently being
> finished.

Sounds great!

> > Is there some kind of limit to the total amount of globals allowed for
> a
> > *.PRC ?  Or is there something else that i'm missing?
> 
> Yes.  Generally, your data is limited to 64K, with no one item exceeding
> 32K.  When you use expanded mode, you get an additional data section of
> 64K for data that doesn't change during a program's run.  Virtual tables
> and exception tables go here.

Well, I reduced down the global usage by about 25KB, which puts global
usage below 64K and the application compiled w/o any errors.  

Also, reading your document about expanded mode (which is great!), I think
I might end up reinstating the 25KB table as pc-relative const.

Thanks for the help.

- Max


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