Well the problem was solved with inline assembly thanks to Jeffry Loucks,
but for completeness sake the code was very similar to this. The code wasn't
specified to be in inline, although it was small enough that it could have
been.
static //tried with and without
const char *GetTimeStamp(void)
{
return "chrisbruner"__DATE__ "&" __TIME__"someothertag";
}
Chris Bruner
Compulife Software Inc.
==============================================
Yes, it's definitely pulling the string from the global data segment
instead of from code. Can you provide the actual source code you compiled
here? I know literal strings will be stuck in the data segment in some
cases, like being used in an inline function.
-- Ben Combee, Senior Software Engineer, Palm, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
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/