Actually, PC-relative String Constants should almost always be on for
68K code.  It actually affects mainly the use like

char *foo = "foo"

or

foo("bar")

In both of those cases, having that switch on will put the string in
the text (code) section which is what you want to be able to handle
non-global launches.

On 7/20/06, Jan Slodicka <[EMAIL PROTECTED]> wrote:
From: "palm" <[EMAIL PROTECTED]>

> I needed to have "PC Relative Strings" checked... that explains why
> calls to DbgMessage("Blah");
> crashed the device!

So you moved your strings from globals to the code segment.

>
> There's also a setting for "PC Relative Constants" that is unchecked
> normally.
> Does anybody think that is important?

If you need some constant global array, say
static const int vars[] = { 1, 2, 34 } ;
 "PC Relative Constants" setting will place this array into the code and you
can access it even in no globals conditions.
Without this setting the array would be placed among globals and any trial
to access it from say sysAppLaunchCmdSystemReset would lead to a crash.

With best regards,
    Jan Slodicka
    Resco, Palm Division


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


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

Reply via email to