I would imagine for shared libraries there must be some method for making
them multi-segment.  I can see 2 shared libraries on my Visor that are
possibly multi-segmented, one of which is the Net Library(96K).  It has a
libr and code segments.  Another developer library (121K) has a libr and 3
code segments.  Any ideas on how that works?
It is true that shared libraries can't access global variables, but you can
allocate a chunk of memory and associate it with your library for use as you
would globals.  It is a little more work but the results are almost the same
as using globals.

----- Original Message -----
From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 1:39 PM
Subject: Re: large Lib (>64K) : more than one segment ?


> "Nourredine Hamoudi" <[EMAIL PROTECTED]> wrote in message
> news:61286@palm-dev-forum...
>  >
>  > Hi,
>  >  I have to build a large PalmOS lib (> 64 K). Is it possible to use
> more
>  > than one segment ?
>
> Are you talking about shared libraries or static libraries?
>
> For static libraries, you can encode your object files with segment
> information directly using "#pragma segment" in the source files.  This
> information should be encoded in the LIB file and transfer to the user's
> project. You can't use the IDE's segmenting feature for this.
>
> In general, its easier to just split the static library into several
> smaller libraries.  This gives the user more flexibility in deciding
> where each part goes in his or her application.
>
> For shared libraries, there isn't a way to multi-segment these
> effectively -- shared libraries don't have accessible global variables,
> but you need the globals to have intersegment jumps.
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



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