At 12:00am -0800 00-11-23, Palm Developer Forum digest wrote:
>Subject: Create a library that spans one code segment.
>From: "Shekar Mantha" <[EMAIL PROTECTED]>
>Date: Wed, 22 Nov 2000 19:37:36 -0500
>X-Message-Number: 73
>
>Hi,
>
>How does one create a library that spans more than one code segment?

Currently there's no built-in support in Metrowerks for creating a 
multi-segment shared library, so you're limited to 64K of code. With 
some significant hacking you could modify the Metrowerks startup code 
to make this work.

>If I
>create
>two libraries (each less than 64K), then I am not able to cross-reference
>functions
>between the libraries.

You could extend the APIs of the "main" shared library to also take 
the refnum of the sub-shared library, which would allow you to call 
routines in the sub-lib from the main lib. You could also pass the 
main library's refnum to routines in the sub-library, so that it 
could call main library routines. Ugly, but workable.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

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