At 12:00am -0700 00-09-26, Palm Developer Forum digest wrote:
>Subject: how to have multiple code resources in a shared library?
>From: "Rob Dugal" <[EMAIL PROTECTED]>
>Date: Mon, 25 Sep 2000 10:26:28 -0400
>X-Message-Number: 49
>
>I need to build a shared library which will be >64k. For some legal reasons
>which I won't go into, I cannot use multiple shared libraries.
>I've read several posts and documents on the subject and it seems that this
>should be possible.
>What I cannot figure out is how to get codewarrior to generate a PRC which
>contains multiple code resources. The Palm article "Shared Libraries and Other
>Advanced Project Types" just glosses over the details of how to build with
>multiple code resources.

 From what I recall, CodeWarrior doesn't provide support (auto-magical 
handling of inter-"segment" jumps) for a multi-segment Palm OS shared 
library. You might be able to force it to work, with some tricks 
similar to supporting A4-globals in a shared library, but I haven't 
looked into it.

Another option is to implement your own support for code resources - 
this is easiest if there are a few routines that wind up calling in 
isolation a bunch of other code. In that case you could create 
individual code resources (the resource type doesn't matter) with 
single entry points for each of these higher-level functions - 
locking the code & calling the routine is easy.

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