At 04:12 PM 8/19/2003, Viren wrote:
)....however, u can allocate "kinda" global-vars in
in the negative part of a5. Please refer to literature/code URLs
mentioned by Dave and Eric for further details.

This is DANGEROUS. CodeWarrior uses the full 64K of possible global space, both 32K above and 32K below A5, so there's no room for negative-A5 globals.


CW's code generation for shared libraries and other code resources will use A4 as a global pointer and stores variable setup info at the end of the code segment. We don't really support this usage, but some people have used this to get globals in a shared library. I think Ken Krugler has an article touching on this scheme.

Lastly, if you use CW 9 ( v4.2.8 ), then creation of shared lib is
very easy. With earlier versions of CW, the programmer needed to
tweak many things before getting the shared lib function. Ben Combee
would be the best person who can enlist all the changes/tweakings
that u should do in CW settings if u are using earlier versions (
like v4.0.1).

The biggest tweak I would recommend is buying CodeWarrior for Palm OS V9 and installing it. That fixes a lot of problems very quickly, especially if you're using V6 (IDE 4.0.1) or older :)


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to