>Is there someplace where I can find some documentation on how CW sets up the
>various types of code sections that are used in a Palm app? And also an
>explanation of how static/global data is handled in a Palm app? Mainly I'm
>wondering about the differences in the way that the following declarations
>are handled:
> a) static var, e.g.: static int somevar;
> b) static initialized var, e.g.: static int is_set = 0;
> c) constant static initialized, e.g.: static const char string1[] =
>"Hello, world.";
In general, global data is stored in the data section.
However, you can explicitly tell CodeWarrior that you want string constants
embedded in the code. On the "68K processor" panel, there is a checkbox that
says "PC Relative strings".
This is very useful for those situations where you cannot access global varaibles.
(which is where constant strings are stored otherwise).
-- Marshall
"The era of big government is over."
Bill Clinton, State of the Union Address, January 23, 1996
Marshall Clow Adobe Systems <mailto:[EMAIL PROTECTED]>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html