"DIAMOND JEFF" <[EMAIL PROTECTED]> wrote in message
news:47933@palm-dev-forum...
>
> Using Codewarrior, what is the best way to create a code segment that
> can be dynamically linked to an existing PRC?  The catch is that
unlike
> a shared library, this dynamic code module would need to access the
> globals of the core program and run in the core programs address
space,
> stack, etc.  The core PRC should really see it just like any function
it
> would normall call in a different segment.

Good question, but not one to which I immediately know the answer.  What
you want is something like a multi-segment application, where the other
segments come from other resource databases instead of the application's
DB.  You could do this through building a multi-segmented application,
then manipulating the PRC files to pull out the additional code
resources into separate PRC files, but I don't know of a mechanism for
building the additional segments separate from the original program.

You can look at the multi-segment loader code -- its in the runtime
library source, and would be the basis for this mechanism.  I think its
doable, but the build process could get a bit hairy.

--
Ben Combee, [EMAIL PROTECTED]
Techwood Broadcasting Foundation, Austin Bureau



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