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

Reply via email to