I was able to port a large library with lots of globals using the A4 trick.
It works very well (though still has an aura of magic about it [with all the
compiler dependent tricks running around in it]). I ran into problems when
trying to call into the IrLib from our shared library in that you must
ensure that any callbacks into your library also setup the A4 glue.
Good Luck,
Kevin
__________________________
Kevin O'Keefe
The Windward Group
TEL: (408) 399-8577
FAX: (408) 395-9642
mailto:[EMAIL PROTECTED]
__________________________
> -----Original Message-----
> From: Greg Winton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 16, 1999 11:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: A5-Relative Addressing
>
>
> Ken,
>
> At 09:33 AM 3/16/99 -0800, you wrote:
> >There is no built-in support for globals in shared
> libraries. I wrote an
> >article about how to hack in A4-relative support - I think
> it was called
> >"PalmOS Shared-Library Globals" in Handheld Systems.
> >
> Your article was recommended to me by Metrowerks support. It's an
> excellent article, and has helped us resolve this issue. Thanks.
>
> >You could probably get A5-relative globals to work as well,
> but it would
> >take even more hacking, and you would probably increase compatibility
> >problems with some apps that assume A5 is always their A5
> (for example
> >inside of trap patches).
> >
> I'm not tied to having A5-relative addressing. I do want the
> globals to
> work, though. We are under strict orders to change as little of the
> library's architecture as possible. It looks like the
> material in your
> article will help us accomplish this. Thanks again!
>
> Regards,
> Greg
>
> Greg Winton
> Bachmann Software and Services, LLC
> mailto:[EMAIL PROTECTED]
> http://www.bachmannsoftware.com
> Software Development for Handheld & Mobile Computing, Windows
> and the Internet
> Home of Bachmann Print Manager, the only graphical printing
> solution for
> the Palm Computing Platform
>
>