I found what I would call an excellent technical article on that and other
close topics in the public gnu prc-tools 0.6.0 beta available from
ftp://meson.jpsystems.com

Although in my personal oppinion the author's style needs to be a little bit
less provokative and attacking, when it comes to technical information it's
simply one of the best I've found on the net!

Regards,
Bobby Kolev

----- Original Message -----
From: Gordon, Douglas <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Wednesday, February 09, 2000 8:20 AM
Subject: Code sections in CW6 & Palm (repost)


> 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.";
> My app uses a number of constant static vars, mostly character strings,
and
> I was assuming that these could be generated in the same sections as the
> executable code since they are basically read-only data. Thus, they
wouldn't
> need to be copied from one place to another when the app starts as is the
> case for non-constant static vars. Is this a correct assumption, or is the
> keyword "const" really just of significance for compile time checking?
Also,
> what would be the difference in code generation between the following
> examples:
> a) static const char mstring[] = "Hello, world!" StrCopy(dest,
> mstring);
> b) StrCopy(dest, "Hello, world!");
> I guess I'm looking to find out how constant data is handled in CW and on
> the Palm as opposed to static/global variable data.
> Doug Gordon
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to